#why the hell does my script stop working after an exact time
1 messages · Page 1 of 1 (latest)
Script
imma send u the button script
script.Parent.ClickDetector.MouseClick:Connect(function(ee) if script.Parent.Uses.Value > .9 then script.Enabled = false workspace.button:Play() for i,v in game.Players:GetPlayers() do v.Character.Humanoid.Health += 75 end workspace.IsLapLeading.Value = true script.Parent.Uses.Value -= 1 end end)
and the door script
``script.Parent.ClickDetector.MouseClick:Connect(function(ee)
local quickplr
for i,v in game.Players:GetPlayers() do
quickplr = v
end
if quickplr.Character.Hidden.Value == true then
if workspace.IsLapLeading.Value == true then
game.ServerScriptService.Main.Laps.Value += 1
script.Parent.Parent.Button.Script.Enabled = true
workspace.IsLapLeading.Value = false
workspace.Lock:Play()
if script.Parent.Parent.Button.Uses.Value < 1 then
local random = workspace.Veins:GetChildren()[math.random(1, #workspace.Veins:GetChildren())]
quickplr.Character:PivotTo(random.TP.CFrame)
game.ServerScriptService.Main.ToDo.Value = math.random(1,5)
workspace.Rooms.Value += 1
game.ServerScriptService.Main.Laps.Value = 0
workspace.CurrentDoor.Value = random.Door
end
end
end
end)``
@steady gale
Ur cooked buddy
ok
Genuinely I can't understand shit
Idk
sterling
My head hurts for each line of the script
brody i stayed awake for 23 hours like 6 months ago
you aint for the weak bro
youre weaker
i mean if it works it works
yall js minimalistic
no offense bro but pls format the lines
** You are now Level 3! **
put
bruh
it wont send
its three of `
then lua im pretty sure
that
it doesnt let me send
``local test = 1000`lua
ahh
there we go
put one ` on each side
Do you need a debounce on the first button script
damn bro
is he okay
yes
everytime you complete an lap you go to the next room
but ig i dont use debounce that much
yall can laugh at script.enabled = false wait() script.enabled = true
lua gay
** You are now Level 4! **
yes
if script.Parent.Uses.Value > .9 then
script.Enabled = false
workspace.button:Play()
for i,v in game.Players:GetPlayers() do
v.Character.Humanoid.Health += 75
end
workspace.IsLapLeading.Value = true
script.Parent.Uses.Value -= 1
end
end)
and the door script
script.Parent.ClickDetector.MouseClick:Connect(function(ee)
local quickplr
for i,v in game.Players:GetPlayers() do
quickplr = v
end
if quickplr.Character.Hidden.Value == true then
if workspace.IsLapLeading.Value == true then
game.ServerScriptService.Main.Laps.Value += 1
script.Parent.Parent.Button.Script.Enabled = true
workspace.IsLapLeading.Value = false
workspace.Lock:Play()
if script.Parent.Parent.Button.Uses.Value < 1 then
local random = workspace.Veins:GetChildren()[math.random(1, #workspace.Veins:GetChildren())]
quickplr.Character:PivotTo(random.TP.CFrame)
game.ServerScriptService.Main.ToDo.Value = math.random(1,5)
workspace.Rooms.Value += 1
game.ServerScriptService.Main.Laps.Value = 0
workspace.CurrentDoor.Value = random.Door
end
end
end
end)```lua
dawh