I don’t understand, i made a cooldown script for my car,since the gui bugs when u get in the car and jump out instantly, but it works only in other games not in the one i want,the script is inside cars seat. Heres the script:
local Cooldown = script.Parent
--cheks for humanoid
local function onTouch(otherPart)
--stores parent parameters parent object smth
local character = otherPart.Parent
print("seat has been touched")
--look for the humanoid
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.JumpPower = 0
wait(2)
humanoid.JumpPower = 50
end
end
--touch even connection
Cooldown.Touched:Connect(onTouch)
local Cooldown = script.Parent
--cheks for humanoid
local function onTouch(otherPart)
--stores parent parameters parent object smth
local character = otherPart.Parent
print("seat has been touched")
--look for the humanoid
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.JumpPower = 0
wait(2)
humanoid.JumpPower = 50
end
end
--touch even connection
Cooldown.Touched:Connect(onTouch)