Basically I'm trying to make it so if a person jumps too much, the so called PlatformStand will activate, and deactivate after a couple of seconds.
All scripts are in a LocalScript.
--LOL Script
local Player = game.Players.LocalPlayer
local char = Player.Character or Player.CharacterAdded:wait()
local humanoid = char:WaitForChild('Humanoid')
local playergui = Player:WaitForChild('PlayerGui')
local Gui = playergui:WaitForChild('Team')
while true do
if humanoid.Jump == true then
Gui.jumping.Value = Gui.jumping.Value + 1
wait(0.1)
elseif humanoid.Jump == false then
if Gui.jumping.Value == 0 then
Gui.jumping.Value = Gui.jumping.Value - 0
wait(0.1)
elseif Gui.jumping.Value ~= 0 then
Gui.jumping.Value = Gui.jumping.Value - 1
wait(0.1)
end
end
end
--Jumping Script
local jumping = script.Parent
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild('Humanoid')
while true do
while jumping.Value ~= 5 do
wait()
end
humanoid.PlatformStand = true
wait(2)
humanoid.PlatformStand = false
wait(1)
end
Located in StarterGUI:
Thanks, LukeGabrieI

2 comments
Can I ask you why you are using PlatformStand? Also I definitely know PlatformStand doesn't prevent jumping but prevents the player from moving with the directional keys.
Anyway, to prevent the player from literally jumping (no matter what condition) please refer to this https://scriptinghelpers.org/questions/11339/how-do-you-disable-jumping