Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- leak this
- local first = Instance.new("Part", workspace)
- first.Anchored = true
- first.CanCollide = false
- first.Size = Vector3.new(20, 50, 20)
- first.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-100, 100), 22, math.random(-100, 100))
- first.Transparency = 0.5
- follow = " "
- local mesh = Instance.new("SpecialMesh", first)
- mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
- mesh.Scale = Vector3.new(20, 30, 20)
- script.Parent = first
- first.Touched:connect(function(p)
- if p.Name ~= "Base" then
- if follow ~= " " then
- if p.Parent.Name == follow then
- follow = " "
- end
- end
- p.Anchored = true
- while game:GetService("RunService").Stepped:wait() do
- 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)
- end
- end
- end)
- owner.Chatted:connect(function(m)
- if m:sub(1,5) == ";find" then
- if workspace:FindFirstChild(m:sub(7)) then
- follow = m:sub(7)
- end
- end
- if m:sub(1,5) == ";stop" then
- follow = " "
- first.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-100, 100), 22, math.random(-100, 100))
- end
- end)
- while game:GetService("RunService").Stepped:wait() do
- if follow == " " then
- 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)
- end
- if follow ~= " " then
- first.CFrame = first.CFrame:lerp(workspace:FindFirstChild(follow):FindFirstChildOfClass("Part").CFrame * CFrame.fromEulerAnglesXYZ(0, 555555, 0), 0.05)
- end
- end
Add Comment
Please, Sign In to add comment