Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game:GetService("Players").LocalPlayer
- local char = p.Character
- char.Animate:Destroy()
- char.Sound:Destroy()
- function sm(part)
- part.BackSurface = "SmoothNoOutlines"
- part.FrontSurface = "SmoothNoOutlines"
- part.RightSurface = "SmoothNoOutlines"
- part.LeftSurface = "SmoothNoOutlines"
- part.TopSurface = "SmoothNoOutlines"
- part.BottomSurface = "SmoothNoOutlines"
- if part.Name ~= "Head" then
- local mesh = Instance.new("SpecialMesh",part)
- part.Material = "SmoothPlastic"
- mesh.MeshType = "Brick"
- end
- end
- wait(0.1)
- for i,v in pairs(char:GetChildren()) do
- if v.Name == "Shirt Graphic" then
- v:Destroy()
- end
- if v.ClassName == "Part" then
- local o = Instance.new("Texture",v)
- o.StudsPerTileV = 1
- o.StudsPerTileU = 1
- o.Face = "Top"
- o.Texture = "https://www.roblox.com/asset/?id=443151721"
- local o2 = Instance.new("Texture",v)
- o2.StudsPerTileV = 1
- o2.StudsPerTileU = 1
- o2.Face = "Bottom"
- o2.Texture = "https://www.roblox.com/asset?id=443154232"
- sm(v)
- end
- end
- local roblox = Instance.new("Decal",char.Torso)
- roblox.Name = "roblox"
- roblox.Texture = "http://www.roblox.com/asset/?version=1&id=1221846"
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = char.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sOuch = newSound("rbxasset://sounds/splat.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/button.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = char
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- sOuch:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement