I used this script to kick a player when they do not click a part in time, and it was working before but is now not working. I tried reverting the whole script back to normal and it still does not work, any tips?
If you need any other scripts that need to be seen I can reply with the code.
“script.Parent.ClickDetectorName.MouseButton1Click:Connect(function()”
If it connects said function, then the “Player:kick:(“reason here”)” Would not work un;\less this function was inside the other function I believe
You Can Do a Bool Value, and have it false as Default
then do
script.Parent.ClickDetector.MouseButton1Click:Connect(function()
script.BoolValue.Value = true
wait(5)
if script.BoolValue.Value == false then
game.ReplicatedStorage.Checker:FireServer(waitTime)
end
end)
Really, Don’t know what you mean, but in the script you can have
script.Parent.Deez.MouseButton1Click:Connect(function()
script.Value.Value = true
wait(5)
if script.Value.Value == false then
game.Player.LocalPlayer:Kick("Did not interact with Part")
end
end)