Advertisement
Navarone19_CH

Speed Run

Jun 16th, 2020
3,285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. 1. Speed/Slow Part
  2. function speed(part)
  3. local humanoid = part.Parent:FindFirstChild("Humanoid")
  4. if humanoid then
  5. humanoid.WalkSpeed = 16*5
  6. humanoid.JumpPower = 50*2
  7. end
  8. end
  9. script.Parent.Touched:Connect(speed)
  10.  
  11.  
  12. 2. teleport
  13. local Teleport_To_This_Tag = "0001"
  14.  
  15. function findTele(tag)
  16. local tele = nil
  17. function scan(p)
  18. for _,v in pairs(p:GetChildren()) do
  19. if ((v.Name == "Telepad") and (v:findFirstChild("Tag"))) then
  20. if (v.Tag.Value == tag) then tele = v break end
  21. end
  22. if (#v:GetChildren() > 0) then scan(v) end
  23. end
  24. end
  25. scan(game:service("Workspace"))
  26. return tele
  27. end
  28.  
  29. script.Parent.Touched:connect(function(h)
  30. local p = game:service("Players"):GetPlayerFromCharacter(h.Parent)
  31. if not (p) then return end
  32. if (p:findFirstChild("JustTeleported")) then return end
  33. if not (findTele(Teleport_To_This_Tag)) then return end
  34. local tele = findTele(Teleport_To_This_Tag)
  35. if (tele) then
  36. if (p.Character) then
  37. p.Character:MoveTo(tele.CFrame.p+Vector3.new(0,3.25,0))
  38. local t = Instance.new("Weld")
  39. t.Name = "JustTeleported"
  40. t.Parent = p
  41. delay(1.5,function() t:remove() end)
  42. end
  43. end
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement