Advertisement
eea

Untitled

eea
Aug 4th, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. local re = Instance.new("RemoteEvent",game.ReplicatedStorage)
  2. re.Name = "Size"
  3. local Re = Instance.new("RemoteEvent",game.ReplicatedStorage)
  4. Re.Name = "Jump"
  5.  
  6. NLS([[
  7. owner.Chatted:Connect(function(message)
  8. if message:sub(1,6) == "//size" then
  9. size = message:sub(8)
  10. game.ReplicatedStorage.Size:FireServer(size)
  11. end
  12. if message:sub(1,6) == "//jump" then
  13. jump = message:sub(8)
  14. game.ReplicatedStorage.Jump:FireServer(jump)
  15. end)
  16. ]], owner.Character)
  17.  
  18. game.ReplicatedStorage.Size.OnServerEvent:Connect(function(player,size)
  19. Char = player.Character
  20. Human = Char:WaitForChild("Humanoid")
  21. Human.BodyWidthScale.Value = size
  22. Human.BodyDepthScale.Value = size
  23. Human.BodyHeightScale.Value = size
  24. Human.HeadScale.Value = size
  25. end)
  26.  
  27. game.ReplicatedStorage.Jump.OnServerEvent:Connect(function(player, jump)
  28. Char = owner.Character
  29. Human = Char:WaitForChild("Humanoid")
  30. Human.JumpPower = jump
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement