Wouldnt it still do both in different scripts?
Two separate buttons. Two separate scripts. It would only do both if you scripted it to do both.
Have two buttons, one called EnableButton and the other called DisableButton. Have them both positioned in the same position as each other. This one can control the Walkspeed and you can apply the scripts I gave you earlier to them.
Then create ANOTHER two buttons like before and have it control the JumpPower.
1 Like
So sorry for the trouble, but thanks for the help! It works just fine now and you are to thank for it.
Hmmm. I just tested it with the speed one. It gives the jump boost and not the speed boost, and the timer does not work.
local disablebutton = script.Parent.DisableButton
local enablebutton = script.Parent.EnableButton
local rs = game:GetService("ReplicatedStorage")
local End = rs.End
local plr = game.Players.LocalPlayer
local timer = 300
local function toMS(s)
return string.format("%02i:%02i", s/60%60, s%60)
end
while true do
if script.Parent.Parent.Parent.Visible == true then
for i = timer,0,-1 do
if disablebutton.Visible == false and enablebutton.Visible == true then
timer = i
script.Parent.Parent.SpeedToggles:WaitForChild("Timer").Text = toMS(i)
wait(1)
end
if script.Parent.Parent.SpeedToggles.Timer.Text == "00:00" then
End:FireServer()
end
end
else
end
wait(.05)
end
local disablebutton = script.Parent.DisableButton
local enablebutton = script.Parent.EnableButton
local effectsEnabled = false --bool for effects on/off
local plr = game.Players.LocalPlayer
enablebutton.MouseButton1Down:Connect(function()
enablebutton.Visible = false
disablebutton.Visible = true
effectsEnabled = false
warn("see")
end)
disablebutton.MouseButton1Down:Connect(function()
enablebutton.Visible = true
disablebutton.Visible = false
effectsEnabled = true
end)
while wait(.1) do -- neat little shortcut here for waits in while loops
if plr.Character then
disablebutton.Visible = not effectsEnabled
enablebutton.Visible = effectsEnabled
if effectsEnabled == true then
plr.Character:WaitForChild("Humanoid").WalkSpeed = 32
else
plr.Character:WaitForChild("Humanoid").WalkSpeed = 16
end
end
end