Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild('Head') and game.Players.LocalPlayer:GetMouse()
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local head = char.Head
- local mouse = plr:GetMouse()
- mouse.Button1Down:connect(function()local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=186130717"
- s.Volume = 1
- s.Pitch = 1 -- The higher this number the faster the sound, the lower the slower
- s.Looped = false
- s.PlayOnRemove = false
- s.Archivable = false
- s.Parent = game.Workspace
- wait(0)
- s:play()
- wait(0.5)
- s:remove()
- local s,f = head.Position,mouse.Hit.p
- local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(s,(f-s).unit*999),char:children())
- local dist = (s-pos).magnitude
- local lastp = s
- for i = 1,10 do
- local newp = (CFrame.new(s,pos)*CFrame.new(0,0,-i*(dist/10))).p+Vector3.new(math.random(-50,50)/20,math.random(-50,50)/20,math.random(-50,50)/20)
- local newdist = (lastp-newp).magnitude
- local p = Instance.new('Part',char) game:service('Debris'):AddItem(p,.5)
- p.Anchored = true
- p.CanCollide = false
- p.TopSurface = 0
- p.BottomSurface = 0
- p.formFactor = 3
- p.Reflectance = .3
- p.Transparency = .3
- p.BrickColor = BrickColor.new('New Yeller')
- p.Size = Vector3.new(.2,.2,newdist)
- p.CFrame = CFrame.new(lastp,newp)*CFrame.new(0,0,-newdist/2)
- lastp = newp
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment