Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I made a script that kick the player when there is a bug ingame but the kick reason is not full why?

Asked by
Komas19 34
4 years ago
Edited 4 years ago

This question has been solved by the original poster.

Please help (at the kick reason it only show "You are not authorized to join the game !")

01local player = game.Players
02local Play = script.Parent:WaitForChild("Play")
03local PlayScreen = Play:WaitForChild("PlayScreen")
04local PlayButton = PlayScreen.PlayButton.TextButton
05local LocalPlayer = player.LocalPlayer
06local reason = "Points System not working !"
07 
08PlayButton.MouseButton1Click:Connect(function()
09    print("Player "..LocalPlayer.Name.. " has joined")
10    if script.Value.Value == true then
11        print("Authorized to join game")
12    else
13        LocalPlayer:Kick("You are not authorized to join the game ! Reason : "..reason.." Sorry about that, the game will be back soon !")
14        print("Not authorized to join game")
15    end
View all 28 lines...
0
I fixed it myself, i just had to press the Apply Edits button at SCRIPT MENU and it fixed the problem Komas19 34 — 4y

1 answer

Log in to vote
0
Answered by
Komas19 34
4 years ago
Edited 4 years ago

I fixed it myself, i just had to press the Apply Edits button at SCRIPT MENU and it fixed the problem (I can't accept my own answer lol)

Ad

Answer this question