I have a drinking script and when it is equipped and a player clicks, the player looks like he/she is drinking it. But the problem is that it wont go back to the player's hand when clicked and the position is changed. Here is the script. I cant figure out whats wrong.... f you have another script u think will work please give it to me because i am having trouble right now XD
local Tool = script.Parent;
enabled = true
function onActivated()
if not enabled then
return
end
enabled = false
Tool.GripForward = Vector3.new(0.675, -0.675, -0.3)
Tool.GripPos = Vector3.new(0.4, -0.59, 1.1)
Tool.GripRight = Vector3.new(0.212, -0.212, 0.954)
Tool.GripUp = Vector3.new(0.707, 0.707, 0)
Tool.Sound:Play()
wait(.8)
local h = Tool.Parent.Parent.Parent.Parent.Parent:FindFirstChild("Humanoid")
if (h ~= nil) then
if (h.MaxHealth > h.Health + 1.6) then
h.Health = h.Health + 1.6
else
h.Health = h.MaxHealth
end
end
Tool.GripForward = Vector3.new(-0.976,0,-0.217)
Tool.GripPos = Vector3.new(0, -0.4, 0)
Tool.GripRight = Vector3.new(0.217,0,-0.976)
Tool.GripUp = Vector3.new(0,1,0)
enabled = true
end
function onEquipped()
Tool.OpenSound:play()
end
script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)

4 comments
I will test your script, then i will help you
ok
I tried to add a 'wait()', but it still was in the position. I have no idea how to fix this. Sorry.
its ok