Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- local function mFloor(x)
- return x - x % 1;
- end
- if script.Parent:WaitForChild("Owner").Value == "None" then
- script.Parent:Destroy()
- end
- local Direction = script.Parent:WaitForChild("Direction").Value
- local Owner = script.Parent:WaitForChild("Owner").Value
- local Player = game.Players:GetFullName(Owner)
- local Rise = 5
- local Follow = true
- local Pet = Instance.new("Part")
- local BodyPosition = Instance.new("BodyPosition")
- local BodyGyro = Instance.new("BodyGyro")
- local PlayerWorkspace = game.Workspace:GetFullName(Owner)
- function RemoteEvent()
- end
- BodyPosition.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- BodyPosition.Parent = Pet
- Mesh = Instance.new("SpecialMesh")
- Mesh.MeshId = "http://www.roblox.com/asset/?id=37223772"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=37223767"
- Mesh.MeshType = "FileMesh"
- Mesh.Scale = Vector3.new(1, 1, 1)
- Mesh.Parent = Pet
- Pet.BrickColor = BrickColor.new("Really black")
- Pet.Parent = game.Workspace:FindFirstChild(Owner)
- Pet.Name = "Pet"
- Pet.Shape = "Ball"
- Pet.formFactor = "Symmetric"
- Pet.Size = Vector3.new(1, 1, 1)
- Pet.TopSurface = 0
- Pet.Locked = true
- Pet.CanCollide = false
- local Levitated = 0
- local LevitateDir = -1
- while true do wait()
- pcall(function()
- Levitated = Levitated + LevitateDir / 20
- if Levitated >= 1 or Levitated <= -1 then
- LevitateDir = - LevitateDir
- end
- local Vector = PlayerWorkspace.Torso.CFrame.lookVector
- Part.CFrame = CFrame.new(Part.Position, Part.Position + Vector)
- if (Follow == true) then
- BodyPosition.position = (Player.Character.Torso.CFrame * CFrame.new(4, Rise, 1.5)).p + Vector3.new(0, Levitated, 0)
- end
- end)
- end
- game.JointsService.DescendantAdded:connect()
- game.Workspace.DescendantAdded:connect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement