Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --make sure to add 'players' folder in ServerStorage
- --after the certain remote is fired make the boolvalue true, if its already true then kick the player who fired
- local itemtable = {
- ['StartedGame'] = 'BoolValue',
- ['DataLoaded'] = 'BoolValue'
- }
- game.Players.PlayerAdded:Connect(function(plr)
- local folder = Instance.new('Folder',game.ServerStorage.players)
- folder.Name = plr.Name
- for i,v in next, itemtable do
- local item = Instance.new(v,folder)
- item.Name = i
- end
- end)
- game.Players.PlayerRemoving:Connect(function(plr)
- game.ServerStorage.players:FindFirstChild(plr.Name):Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement