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.Transparency = 0.5 P.Size = Vector3.new(1.4,1.4,1.4) P.CanCollide = true 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.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 =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement