|
| 25 Jan 2016 08:18 PM |
local tool = script.Parent
tool.Equipped:connect(function() local weld = Instance.new("Weld") weld.Parent = tool weld.Part0 = tool:FindFirstChild("Handle") weld.C0 = CFrame.new(0,0,0) weld.Part1 = tool:FindFirstChild("PartZ") weld.C1 = CFrame.new(0,-2,0) end)
Do you guys see anything wrong with this script because when I equip the tool an animation is supposed to play, which it does, but when I unequip the tool, the animation is supposed to stop playing, but it doesn't. My character stays in the same position. I think the problem has something to do with this script. Help!? |
|
|
| Report Abuse |
|
|
| |
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
| |
|
|
| 25 Jan 2016 09:02 PM |
if tool.Equipped = false then (Stop playing animation)
|
|
|
| Report Abuse |
|
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
|
| 26 Jan 2016 06:58 PM |
@above When you compare, you use ==
#code print ("ish de squid weal") |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jan 2016 08:02 PM |
| @metalogy the squid is indeed real ;-) |
|
|
| Report Abuse |
|
|