Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make it so players can't stand up from PlatformStand by pressing backspace?

I know this is possible, since Deathrun 2 has it.

I already tried this:

plr = game.Players.LocalPlayer
mouse = plr:GetMouse()

mouse.KeyDown:connect(function(key)
	if key:byte() == 8 then
		wait(3)
		plr.Character.Humanoid.PlatformStand = true
	end	
end)

But all it does is create a sort of super jump button. Anyways, I could use some help.

2 comments

0

I change the wait(3) to many other numbers, and it still did not work. The wait() is not the problem, the entire idea is.

0

Nobody wants to help? Seriously?

1 answer

I've been disliked too much for answering. This is my last answer. I hope this helps!

plr = game.Players.LocalPlayer
plr.Character.Humanoid.PlatformStand = false
mouse = plr:GetMouse()

mouse.KeyDown:connect(function(key)
    if key:lower():byte() == 8 and plr.Character.Humanoid.PlatformStand == false then
      for i = 0, 1 do
wait(3)
        plr.Character.Humanoid.PlatformStand = true
plr.Character.Humanoid.PlatformStand = false
end
    end 
end)

As you can see, waits not that reliable. Instead I mixed it up a bit changing to check if the players platformstand is false, and if it is, it runs a for loop that waits 3 seconds to run. For loops are much more reliable then waits, waits glitch out alot and are buggy.

2 comments

0

Thanks for trying to help, but I already messaged Wsly and he told me how he did it. I appreciate you trying to help, though.

0

e.e okay...

This discussion is preserved as it was. New answers, comments, and votes are closed.