of     1   

joekingly
#219883507Tuesday, June 27, 2017 4:30 PM GMT

Two questions, What is the command to bring up the Roblox developer console for in-game statistics and script checking? What are the the causes for differences in functionality for Roblox Studio Test Mode vs Roblox Player Play Mode? I don't know why some scripts work in Test mode and some don't in when I play it. Type away your response, or... Here are some examples to help relate with my conundrum... - and no this isn't a local script if you're wondering. - It's placed in StarterGui with ScreenGui as a parent. local plr = script.Parent.Parent.Parent local mouse = plr:GetMouse() local button = script.Parent.Button local stamina = script.Parent.Stamina.Value stamina = 100 local sprinting = script.Parent.Sprinting.Value local cooldown = 0 local clickk = false local shifft = false sprinting = false mouse.KeyDown:connect(function(key) if key == "0" then if stamina >= 10 then if cooldown == 0 then if clickk == false then shifft = true sprinting = true plr.Character.Humanoid.WalkSpeed = 32 plr.Character.Humanoid.JumpPower = 100 while sprinting == true do if stamina == 0 then sprinting = false -- if they run dry on stams plr.Character.Humanoid.WalkSpeed = 8 plr.Character.Humanoid.JumpPower = 12.5 end wait(0.5) stamina = stamina - math.random(1,5) print(stamina) end end end end end end) mouse.KeyUp:connect(function(key) if key == "0" then cooldown = 1 plr.Character.Humanoid.WalkSpeed = 16 plr.Character.Humanoid.JumpPower = 50 sprinting = false wait(1) cooldown = 0 shifft = false end end) button.MouseButton1Down:connect(function() -- GUI STUFF if stamina >= 10 then if cooldown == 0 then if shifft == false then clickk = true sprinting = true plr.Character.Humanoid.WalkSpeed = 32 plr.Character.Humanoid.JumpPower = 100 while sprinting == true do wait(0.5) if stamina == 0 then sprinting = false -- if they run dry on stams plr.Character.Humanoid.WalkSpeed = 8 plr.Character.Humanoid.JumpPower = 12.5 end stamina = stamina - math.random(1,5) print(stamina) end end end end end) button.MouseButton1Up:connect(function() cooldown = 1 plr.Character.Humanoid.WalkSpeed = 16 plr.Character.Humanoid.JumpPower = 50 sprinting = false wait(1) cooldown = 0 clickk = false end) while true do wait(0.5) if stamina < 100 then if sprinting == false then stamina = stamina + math.random(1,2) print(stamina) end end end I haven't scripted in nearly two years now, very rusty, but even back then I didn't know why things like this are one-sided. Like I said, it works in test mode but not the gameplay mode.
joekingly
#219885443Tuesday, June 27, 2017 5:04 PM GMT

Bump
joekingly
#219986745Wednesday, June 28, 2017 11:00 PM GMT

Bump
BunnyBoy26
#220085113Friday, June 30, 2017 4:16 AM GMT

You should use a LocalScript whenever you use the Mouse.
caca50
#220086942Friday, June 30, 2017 4:43 AM GMT

"What is the command to bring up the Roblox developer console for in-game statistics and script checking?" Either f5 or ##### or maybe f8
cokeeeeeeeee
#220087004Friday, June 30, 2017 4:45 AM GMT

to bring up the dev console, press ##
cokeeeeeeeee
#220087021Friday, June 30, 2017 4:45 AM GMT

f 9

    of     1