Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.Chxp
- function onchatted(msg)
- if msg == "-orb" then
- P = Instance.new("Part", Player.Character)
- P.Shape = "Ball"
- P.CanCollide = false
- P.Size = Vector3.new(1.4,1.4,1.4)
- Character = Player.Character
- Torso = P--Character['Torso']
- function StartTrail(Object)
- local lastPos = Object.CFrame.p
- coroutine.wrap(function()
- while Object ~= nil do
- wait(0.01)
- local objC = Instance.new('Part', Object)
- objC.CanCollide = false
- objC.Locked = true
- objC.FormFactor = 'Custom'
- objC.BrickColor = BrickColor.new("Black")
- objC.Parent = Object.Parent
- objC.Anchored = true
- objC.Shape = "Block"
- --objC.BrickColor = BrickColor.new("Really blue")
- objC.TopSurface,objC.BottomSurface=0,0
- local distance = (lastPos- Object.CFrame.p).magnitude
- objC.Size = Vector3.new(0.8,0.8,distance)
- objC.CFrame = CFrame.new(lastPos,Object.Position)*CFrame.new(0,0,-distance/2)
- coroutine.wrap(function()
- for i = 0,0.8,0.1 do
- wait()
- objC.Transparency = i
- pcall(function()
- objC.Size = objC.Size - Vector3.new(0.1,0.1,0)
- end)
- end
- objC:Destroy()
- end)()
- lastPos = Object.CFrame.p
- end
- end)()
- end
- StartTrail(Torso)
- RP = Instance.new("RocketPropulsion", P)
- RP.MaxThrust = 1000000
- RP.MaxSpeed = 1000
- RP.Target = Player.Character.Head
- RP:Fire()
- end
- end
- Player.Chatted:connect(onchatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement