local debounce = false
game.ReplicatedStorage.BindableFunctions.MoveWeights.OnInvoke = function()
local weight = script.Parent
if debounce == true then return end
if debounce == false then debounce = true
for i = 1,15 do
wait()
weight:TranslateBy(Vector3.new(0,0.125,0.125))
end
for i = 1,15 do
wait()
weight:TranslateBy(Vector3.new(0,-0.125,-0.125))
end
debounce = false
end
end
so this script is controlled with a bindable function that is connected to a local script but for whatever reason whenever i test it in studio mode it works but whenever i test it in the actual game it doesn't and I cant figure out why? Also there are no errors popping up in the output bar
This is the local script that the above script is connected to:
script.Parent.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
game.ReplicatedStorage.BindableFunctions.MoveWeights:Invoke()
end)
end)

13 comments
Shouldn't work in studio either since you have an extra end.
wheres the extra end? i cant find it anywhere
You'd find it if you indented properly.................................................
well this script works in studio and no errors show there is an extra end in the output so I dont think thats the problem
also im pretty sure i did do the indenting wrong so that was my bad
There is no extra end, the one you're looking for is included in the same line as the if statement. As for most debugging I find it helpful to include print commands throughout to see which things are firing and which are not.
i did what you said and it seems that its from the local script, however i can't really find anything wrong with it
of course dere is no extra end because he removed it in an edit
lol hiimgoodpack i just fixed my indenting
there i made it back to when you though i had an extra end
and dont bother commenting when you're not gonna help, i even said no errors popped up in the output so how can there be an extra end?
"Write your answer here. If you are not posting an explanation, please use comments instead!" It's called a suggestion, not an answer. Also, you did not fix your indenting.
edited 1 hour ago.... i just reverted it back to before i did anything with it LOL...