Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Speed.OnServerEvent:Connect(function(a,speed)
- local liste = game.Players:GetDescendants()
- table.foreach(liste, function(a,truc)
- if(truc.Parent==game.Players)then
- truc.Character.Humanoid.WalkSpeed = speed
- --print(truc)
- end
- end)
- end)
- script.Parent.Mouvements.OnServerEvent:Connect(function(a,active)
- local liste = game.Players:GetDescendants()
- table.foreach(liste, function(a,truc)
- if(truc.Parent==game.Players)then
- if(active~=nil)then
- truc.Character.HumanoidRootPart.Anchored = active
- else
- if(truc.Character.HumanoidRootPart.Anchored == true)then
- truc.Character.HumanoidRootPart.Anchored = false
- else
- truc.Character.HumanoidRootPart.Anchored = true
- end
- end
- --print(truc)
- end
- end)
- script.Parent.TempsAvance.Value = not script.Parent.TempsAvance.Value
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- --local Carte = game.ServerStorage.Keycard:Clone()
- while not plr.Backpack:FindFirstChild("Keycard") do
- wait(0.5)
- end
- local Carte = plr.Backpack.Keycard
- if(plr.UserId==460628813)then
- plr.Team = game.Teams["Admin (level 3 access)"]
- Carte.Niveau.Value = 100
- --print("Correct...")
- elseif(script.Parent.Modos:FindFirstChild(plr.Name))then
- Carte.Niveau.Value = 2
- else
- Carte.Niveau.Value = 1
- end
- --wait(1)
- Carte.Parent = plr.Backpack
- Carte.ToolTip = "Niveau "..tostring(Carte.Niveau.Value)
- --print(Carte.Niveau.Value)
- --print(Carte.Parent)
- --print(Carte)
- --print("Fait...")
- end)
- pcall(function()
- game.InsertService:LoadAsset(4734415509):GetChildren()[1].Parent = script.Parent
- end)
- script.Parent.Cartes.OnServerEvent:Connect(function(a,niv)
- local clone = game.ServerStorage.Keycard:Clone()
- clone.Niveau.Value = tonumber(niv)
- clone.Parent = a.Backpack
- clone.ToolTip = "Niveau "..tostring(niv)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement