Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- physics = true
- mouse = plr:GetMouse()
- char = plr.Character
- hum = char.Humanoid
- spd = hum.WalkSpeed
- tors = char.Torso
- function Swait(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- local remote = Instance.new("RemoteEvent",char)
- remote.Name = "hi"
- local song = Instance.new("Sound",tors)
- song.SoundId = "rbxassetid://1335315983"
- song.Volume = 10
- song.Looped = true
- song.Name = "oatmeal"
- song:Play()
- local client = NLS([[
- plr = owner
- char = plr.Character
- remote = char.hi
- song = char.Torso.oatmeal
- loud = song.PlaybackLoudness
- function Swait(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- while true do
- Swait()
- --remote:FireServer(char.Torso.CFrame * CFrame.new(0, -3, 0), song.PlaybackLoudness)
- remote:FireServer(song.PlaybackLoudness)
- end
- ]],char)
- function cartrail(number)
- local p = Instance.new("Part",char)
- p.CFrame = tors.CFrame * CFrame.new(0, -3, 0)
- p.BrickColor = BrickColor.new("Black")
- p.Transparency = 0.5
- p.CanCollide = false
- p.Anchored = true
- p.Size = Vector3.new(0.5, number, hum.WalkSpeed - 14.75)
- p.Position = p.Position + Vector3.new(0, number / 2, 0)
- coroutine.resume(coroutine.create(function()
- wait(2)
- for i = 1,15 do
- Swait()
- p.Transparency = p.Transparency + 0.1
- end
- p:remove()
- end))
- end
- remote.OnServerEvent:connect(cartrail)
- while true do
- Swait()
- --cartrail(tors.CFrame * CFrame.new(0, -3, 0))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement