DrakerMaker

Tornado

Nov 24th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. -- leak this
  2. local first = Instance.new("Part", workspace)
  3. first.Anchored = true
  4. first.CanCollide = false
  5. first.Size = Vector3.new(20, 50, 20)
  6. first.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-100, 100), 22, math.random(-100, 100))
  7. first.Transparency = 0.5
  8. follow = " "
  9. local mesh = Instance.new("SpecialMesh", first)
  10. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  11. mesh.Scale = Vector3.new(20, 30, 20)
  12. script.Parent = first
  13. first.Touched:connect(function(p)
  14. if p.Name ~= "Base" then
  15. if follow ~= " " then
  16. if p.Parent.Name == follow then
  17. follow = " "
  18. end
  19. end
  20. p.Anchored = true
  21. while game:GetService("RunService").Stepped:wait() do
  22. p.CFrame = p.CFrame:lerp(first.CFrame *CFrame.new(math.random(-30, 30), 0, math.random(-30, 30)) *CFrame.Angles(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)), 0.05)
  23. end
  24. end
  25. end)
  26. owner.Chatted:connect(function(m)
  27. if m:sub(1,5) == ";find" then
  28. if workspace:FindFirstChild(m:sub(7)) then
  29. follow = m:sub(7)
  30. end
  31. end
  32. if m:sub(1,5) == ";stop" then
  33. follow = " "
  34. first.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-100, 100), 22, math.random(-100, 100))
  35. end
  36. end)
  37. while game:GetService("RunService").Stepped:wait() do
  38. if follow == " " then
  39. first.CFrame = first.CFrame:lerp(first.CFrame *CFrame.new(math.random(-55, 55), 0, math.random(-55, 55)) * CFrame.fromEulerAnglesXYZ(0, 555555, 0), 0.05)
  40. end
  41. if follow ~= " " then
  42. first.CFrame = first.CFrame:lerp(workspace:FindFirstChild(follow):FindFirstChildOfClass("Part").CFrame * CFrame.fromEulerAnglesXYZ(0, 555555, 0), 0.05)
  43. end
  44. end
Add Comment
Please, Sign In to add comment