Advertisement
DARKMODZ

Untitled

May 23rd, 2023
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. -- FE HEAVEN SCRIPT (Fly other player)
  2. -- You have to be R6 for this to work, however it works on others that are R15
  3. -- Once you executed, mouse over the player and click on them to send them to heaven!
  4.  
  5. player = game:GetService("Players").LocalPlayer
  6. mouse = player:GetMouse()
  7. camera = workspace.CurrentCamera
  8. ts = game:GetService("TweenService")
  9.  
  10. function createtween(part, cframe,ttime)
  11. local tweeninfo = TweenInfo.new(ttime)
  12. tween = ts:Create(part, tweeninfo, {CFrame = cframe})
  13. tween:Play()
  14. tween.Completed:Wait()
  15. end
  16.  
  17. outline = Instance.new("Highlight")
  18.  
  19. target = nil
  20.  
  21. mouse.Button1Up:Connect(function()
  22. if mouse.Target then
  23. local model = mouse.Target:FindFirstAncestorOfClass("Model")
  24. if model and model:FindFirstChild("Humanoid") then do
  25. camera.CameraSubject = model.Humanoid
  26. target = model
  27. end else
  28. outline.Parent = nil
  29. end
  30. end
  31. end)
  32.  
  33. game:GetService("RunService").RenderStepped:Connect(function()
  34. if player.Character:FindFirstChild("HumanoidRootPart") then
  35. player.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  36. if target and target:FindFirstChild("HumanoidRootPart") then
  37. if target.HumanoidRootPart.CFrame.Y + 20 < player.Character.HumanoidRootPart.CFrame.Y then
  38. tween:Cancel()
  39. end
  40. end
  41. end
  42. if mouse.Target then
  43. local model = mouse.Target:FindFirstAncestorOfClass("Model")
  44. if model and model:FindFirstChild("Humanoid") then do
  45. outline.Parent = model
  46. end else
  47. outline.Parent = nil
  48. end
  49. end
  50. end)
  51.  
  52. while task.wait() do
  53. if target ~= nil and target:FindFirstAncestorOfClass("Workspace") and target ~= player.Character and player.Character:FindFirstChild("HumanoidRootPart") and target:FindFirstChild("HumanoidRootPart") then
  54. character = player.Character
  55. hrp = character.HumanoidRootPart
  56. thrp = target.HumanoidRootPart
  57. hrp.CFrame = thrp.CFrame * CFrame.Angles(math.rad(90),0,0) + thrp.CFrame.UpVector * -10
  58. end
  59. if target ~= nil and target:FindFirstAncestorOfClass("Workspace") and target ~= player.Character and player.Character:FindFirstChild("HumanoidRootPart") and target:FindFirstChild("HumanoidRootPart") then
  60. character = player.Character
  61. hrp = character.HumanoidRootPart
  62. thrp = target.HumanoidRootPart
  63. rot = thrp.CFrame*CFrame.Angles(math.rad(25),math.rad(25),math.rad(25))
  64. createtween(hrp, thrp.CFrame * CFrame.Angles(math.rad(90),0,0) + thrp.CFrame.UpVector * 1000000, 100000)
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement