Advertisement
ShanuGaming

Instant transmission script

Sep 6th, 2024
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2. local tool = Instance.new("Tool")
  3. tool.RequiresHandle = false
  4. tool.Name = "Instinct Transmission"
  5.  
  6. local teleportAnimationId = "rbxassetid://15957361339"
  7. local teleportSoundId = "rbxassetid://5066021887"
  8.  
  9. local player = game.Players.LocalPlayer
  10. local character = player.Character or player.CharacterAdded:Wait()
  11. local humanoid = character:WaitForChild("Humanoid")
  12. local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
  13.  
  14. local teleportAnimation = Instance.new("Animation")
  15. teleportAnimation.AnimationId = teleportAnimationId
  16. local teleportTrack = animator:LoadAnimation(teleportAnimation)
  17.  
  18. local teleportSound = Instance.new("Sound")
  19. teleportSound.SoundId = teleportSoundId
  20. teleportSound.Parent = character.HumanoidRootPart
  21.  
  22. tool.Activated:Connect(function()
  23. teleportTrack:Play()
  24. teleportSound:Play()
  25. local pos = mouse.Hit + Vector3.new(0, 2.5, 0)
  26. pos = CFrame.new(pos.X, pos.Y, pos.Z)
  27. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  28. end)
  29.  
  30. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement