null
nil
-
true
true
0.400000006
-0.300000012
0.100000001
1
0
0
0
0
-1
-0
1
-0
Resize Tool
http://www.roblox.com/asset/?id=15960433
resize
-
false
-0.5
0.5
0
0
-0.5
0.5
0
0
199
0.5
0.600000024
0
0
0
-1
0
1
-0
1
0
-0
true
0.5
0.300000012
-0.5
0.5
0
0
-0.5
0.5
0
0
true
256
Handle
0.400000006
-0.5
0.5
0
0
0
0
0
-0.5
0.5
0
0
0
0
0
0
2
1
2
1.20000005
1
-
2
2
http://www.roblox.com/asset/?id=15954259
5
Mesh
0
0
0
0.400000006
0.400000006
0.400000006
http://www.roblox.com/asset/?id=2545074114
1
1
1
-
false
Resize Local
local Tool = script.Parent;
enabled = true
local selectionBox;
local handles;
local previousDistance;
function onHandlesDown(normal)
print("handlesDown")
previousDistance = 0
end
function onHandlesDrag(normal, distance)
if handles.Adornee then
local delta = distance - previousDistance;
if math.abs(delta) >= handles.Adornee.ResizeIncrement then
local sizeDelta = math.floor(delta / handles.Adornee.ResizeIncrement + 0.5) * handles.Adornee.ResizeIncrement
if handles.Adornee:Resize(normal, sizeDelta) then
previousDistance = distance;
end
end
end
end
function onButton1Down(mouse)
print("3DButtonDown")
if mouse.Target == nil or mouse.Target.Locked then
selectionBox.Adornee = nil
handles.Adornee = nil
else
selectionBox.Adornee = mouse.Target
handles.Adornee = mouse.Target
handles.Faces = mouse.Target.ResizeableFaces
end
end
function onEquippedLocal(mouse)
mouse.Icon ="rbxasset://textures\\DragCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
local player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
selectionBox = Instance.new("SelectionBox")
selectionBox.Color = BrickColor.Blue()
selectionBox.Adornee = nil
selectionBox.Parent = player.PlayerGui;
handles = Instance.new("Handles")
handles.Color = BrickColor.Blue()
handles.Adornee = nil
handles.MouseDrag:connect(onHandlesDrag)
handles.MouseButton1Down:connect(onHandlesDown)
handles.Parent = player.PlayerGui;
end
function onUnequippedLocal()
selectionBox.Parent = nil
handles.Parent = nil
end
Tool.Equipped:connect(onEquippedLocal)
Tool.Unequipped:connect(onUnequippedLocal)
-
false
SwordScript
-------- OMG HAX
r = game:service("RunService")
local damage = 0
local slash_damage = 0
sword = script.Parent.Handle
Tool = script.Parent
function attack()
local anim = Instance.new("StringValue")
anim.Name = "toolanim"
anim.Value = "Slash"
anim.Parent = Tool
end
function swordUp()
Tool.GripForward = Vector3.new(-1,0,0)
Tool.GripRight = Vector3.new(0,1,0)
Tool.GripUp = Vector3.new(0,0,1)
end
function swordOut()
Tool.GripForward = Vector3.new(0,0,1)
Tool.GripRight = Vector3.new(0,-1,0)
Tool.GripUp = Vector3.new(-1,0,0)
end
Tool.Enabled = true
function onActivated()
if not Tool.Enabled then
return
end
Tool.Enabled = false
local character = Tool.Parent;
local humanoid = character.Humanoid
if humanoid == nil then
print("Humanoid not found")
return
end
attack()
wait(1)
Tool.Enabled = true
end
function onEquipped()
end
script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)