of     1   

awsomeparkour
#139701147Wednesday, July 09, 2014 12:10 AM GMT

I'm making a hopperbin, it has 2 parts, 1 to detect when the hopperbin is selected the other is the function of the hopperbin, it works perfectly in studio play mode, why won't it work in game? Selected Detection Localscript: isEquipped = false script.Parent.Selected:connect(function(mouse) isEquipped = true end) script.Parent.Deselected:connect(function(mouse) isEquipped = false end) while wait() do if isEquipped == true then script.Parent.Function.Disabled = false elseif isEquipped == false then script.Parent.Function.Disabled = true end end Function script: running = false game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(keydown) keydown:lower() if keydown == "q" then running = true end end) game.Players.LocalPlayer:GetMouse().KeyUp:connect(function(keyup) keyup:lower() if keyup == "q" then running = false end end) while wait() do if running == true then Workspace.Seat.BodyVelocity.velocity = Vector3.new(0,10,0) elseif running == false then Workspace.Seat.BodyVelocity.velocity = Vector3.new(0,0,0) end end
awsomeparkour
#139702113Wednesday, July 09, 2014 12:19 AM GMT

Anyone?
awsomeparkour
#139702800Wednesday, July 09, 2014 12:25 AM GMT

A scripting forum with no good scripters...
domorox17
#139704106Wednesday, July 09, 2014 12:36 AM GMT

How about you simplify this? Just change the Velocity when you press the key.
awsomeparkour
#139708275Wednesday, July 09, 2014 1:13 AM GMT

That doesn't solve my problem..
TheJKM98
#139710517Wednesday, July 09, 2014 1:35 AM GMT

Any errors? Hit F9 for developers console. (In-game)
awsomeparkour
#139799361Wednesday, July 09, 2014 9:37 PM GMT

Sort of, in the local console it says "Content failed because Asset is not trusted for this place" in red, and above that it says "httpGet failed, Trying again.." and some elapsed time in orange. There are no server sided errors.
awsomeparkour
#139799897Wednesday, July 09, 2014 9:42 PM GMT

I'm not sure its even related to the script although it could be.
KhaanRaptorex
#139800024Wednesday, July 09, 2014 9:44 PM GMT

Try putting it in a Local script.
awsomeparkour
#139800393Wednesday, July 09, 2014 9:47 PM GMT

.....Thank you very much you helped me a Lot....I can't believe I didn't think of that.
KhaanRaptorex
#139859785Thursday, July 10, 2014 9:15 AM GMT

Happy to help.
2eggnog
#139864378Thursday, July 10, 2014 11:19 AM GMT

For future reference, if something works in studio but not online, it is almost always because you're using the wrong kind of script.

    of     1