Advertisement
KaesK

Untitled

Mar 17th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. script.Parent.Speed.OnServerEvent:Connect(function(a,speed)
  2. local liste = game.Players:GetDescendants()
  3. table.foreach(liste, function(a,truc)
  4. if(truc.Parent==game.Players)then
  5. truc.Character.Humanoid.WalkSpeed = speed
  6. --print(truc)
  7. end
  8. end)
  9. end)
  10.  
  11. script.Parent.Mouvements.OnServerEvent:Connect(function(a,active)
  12. local liste = game.Players:GetDescendants()
  13. table.foreach(liste, function(a,truc)
  14. if(truc.Parent==game.Players)then
  15. if(active~=nil)then
  16. truc.Character.HumanoidRootPart.Anchored = active
  17. else
  18. if(truc.Character.HumanoidRootPart.Anchored == true)then
  19. truc.Character.HumanoidRootPart.Anchored = false
  20. else
  21. truc.Character.HumanoidRootPart.Anchored = true
  22. end
  23. end
  24. --print(truc)
  25. end
  26. end)
  27. script.Parent.TempsAvance.Value = not script.Parent.TempsAvance.Value
  28. end)
  29.  
  30. game.Players.PlayerAdded:Connect(function(plr)
  31. --local Carte = game.ServerStorage.Keycard:Clone()
  32. while not plr.Backpack:FindFirstChild("Keycard") do
  33. wait(0.5)
  34. end
  35. local Carte = plr.Backpack.Keycard
  36. if(plr.UserId==460628813)then
  37. plr.Team = game.Teams["Admin (level 3 access)"]
  38. Carte.Niveau.Value = 100
  39. --print("Correct...")
  40. elseif(script.Parent.Modos:FindFirstChild(plr.Name))then
  41. Carte.Niveau.Value = 2
  42. else
  43. Carte.Niveau.Value = 1
  44. end
  45. --wait(1)
  46. Carte.Parent = plr.Backpack
  47. Carte.ToolTip = "Niveau "..tostring(Carte.Niveau.Value)
  48. --print(Carte.Niveau.Value)
  49. --print(Carte.Parent)
  50. --print(Carte)
  51. --print("Fait...")
  52. end)
  53.  
  54. pcall(function()
  55. game.InsertService:LoadAsset(4734415509):GetChildren()[1].Parent = script.Parent
  56. end)
  57.  
  58. script.Parent.Cartes.OnServerEvent:Connect(function(a,niv)
  59. local clone = game.ServerStorage.Keycard:Clone()
  60. clone.Niveau.Value = tonumber(niv)
  61. clone.Parent = a.Backpack
  62. clone.ToolTip = "Niveau "..tostring(niv)
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement