Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Created by Sharkringan kthx
- --]]
- wait(1/60)
- plr = game:service'Players'.LocalPlayer
- char = plr.Character
- root = char:FindFirstChild'HumanoidRootPart'
- hum = char:FindFirstChildOfClass'Humanoid'
- mouse = plr:GetMouse()
- clones = {}
- followplr = true
- radius = 25
- if char.Head:FindFirstChild'face' then
- char.Head.face:Destroy()
- end
- for _, a in pairs(char:children()) do
- if a:IsA'Part' then
- a.Transparency = 1
- elseif a:IsA'Accessory' then
- a:Destroy()
- end
- end
- eyes = Instance.new('Part', char)
- eyes.Anchored = true
- eyes.Name = "Eyes"
- eyes.Size = Vector3.new(0.22, 0.052, 0.105)
- eyesm = Instance.new('SpecialMesh', eyes)
- eyesm.Scale = Vector3.new(10.99, 10.99, 0.10)
- eyesm.MeshId = "rbxassetid://1032765290"
- eyesm.TextureId = "rbxassetid://1032765300"
- eyes = Instance.new('Part', char)
- eyes.Anchored = false
- eyes.Name = "Eyes"
- eyes.Size = Vector3.new(0.22, 0.052, 0.105)
- eyesm = Instance.new('SpecialMesh', eyes)
- eyesm.Scale = Vector3.new(0.005, 0.005, 0.005)
- eyesm.MeshId = "rbxassetid://1546840102"
- eyesm.TextureId = "rbxassetid://1546840114"
- body = Instance.new('Part', char)
- body.Anchored = false
- body.Name = "Body"
- body.Size = Vector3.new(0.60, 0.062, 0.60)
- bodym = Instance.new('SpecialMesh', body)
- bodym.Scale = Vector3.new(0.46, 0.46, 0.46)
- bodym.MeshId = "rbxassetid://1546840102"
- bodym.TextureId = "rbxassetid://1546840114"
- weld1 = Instance.new('Weld', eyes)
- weld1.Part0 = eyes
- weld1.Part1 = root
- weld1.C0 = CFrame.new(0,1.55,.2)
- weld2 = Instance.new('Weld', body)
- weld2.Part0 = body
- weld2.Part1 = root
- weld2.C0 = CFrame.new(0,1.1,0)
- local music=Instance.new("Sound",char.Torso)
- music.SoundId="rbxassetid://0"
- music.Volume = 2.5
- music.Looped=true
- music:Play()
- TheWay1 = Instance.new('Sound', body)
- TheWay1.SoundId = "rbxassetid://0"
- TheWay1.Volume = 3
- TheWay1.Name = "TheWay1"
- TheWay2 = Instance.new('Sound', body)
- TheWay2.SoundId = "rbxassetid://0"
- TheWay2.Volume = 3
- TheWay2.Name = "TheWay2"
- Spit = Instance.new('Sound', body)
- Spit.SoundId = "rbxassetid://1303652161"
- Spit.Volume = 3
- Spit.Name = "Spit"
- Click = Instance.new('Sound', body)
- Click.SoundId = "rbxassetid://132742415"
- Click.Volume = 3
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size14
- TextButton.Text = "goomba?"
- TextButton.TextSize = 14
- --[[Function/s being made!]]
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = workspace
- music.Volume = 999
- music.Looped = false
- music:Play()
- end
- --[[Connecting functions!]]
- TextButton.MouseButton1Down:connect(function()
- PlayMusic(306587162)
- end)
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.Size = UDim2.new(0, 150, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size14
- TextButton.Text = "sugar Plums!"
- TextButton.TextSize = 14
- --[[Function/s being made!]]
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = workspace
- music.Volume = 999
- music.Looped = false
- music:Play()
- end
- --[[Connecting functions!]]
- TextButton.MouseButton1Down:connect(function()
- PlayMusic(957496845)
- end)
- --This is a localscript; you will need to have access to using scripts wherever you want this
- p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
- print("Finding Goomba... (This may take a year!)")
- wait (1)
- print("Found Goomber. Now giving the headbutt.")
- local user = game.Players.LocalPlayer.Backpack
- local sword = Instance.new("Tool",user)
- print("Gave the player the sword. Enjoy!")
- local handle = Instance.new("Part",sword)
- local mesh = Instance.new("SpecialMesh",handle)
- local DAMAGE = 15
- local sound = Instance.new("Sound",handle)
- local sound2 = Instance.new("Sound",handle)
- sword.Name = "Sword"
- script.Parent = sword
- script.Name = "SwordScript"
- --local animation = Instance.new("Animation",script)
- --animation.AnimationId = "http://www.roblox.com/Asset?ID=992817684"
- sound.SoundId = "rbxasset://sounds//swordlunge.wav"
- sound.Volume = 3
- sound.PlaybackSpeed = 1.17
- sound.Name = "Slash"
- sound2.SoundId = "rbxasset://sounds//unsheath.wav"
- sound2.Volume = 3
- sound2.PlaybackSpeed = 0.8
- sound2.Volume = 3
- sound2.Name = "Unsheath"
- function unsheathanimation()
- sword.GripPos = sword.GripPos + Vector3.new(0,5,0)
- for i = 1,5 do
- sword.GripPos = sword.GripPos + Vector3.new(0,-1,0)
- wait (0.1)
- end
- end
- function unsheathsound()
- sound2:Play()
- end
- function damage(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if (h ~= nil) then
- h:TakeDamage(DAMAGE / 4)
- end
- end
- function animate()
- --4
- sound:Play()
- for i = 1,5 do
- sword.GripUp = sword.GripUp + Vector3.new(0,0,1)
- wait (0)
- end
- sword.GripUp = sword.GripUp + Vector3.new(0,0,-1)
- end
- handle.Size = handle.Size + Vector3.new(-4,-1,-2)
- handle.Size = handle.Size + Vector3.new(0.20, 3.20, 0.20)
- handle.Name = "Handle"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=0"
- mesh.TextureId = "http://www.roblox.com/asset/?ID=0"
- mesh.Offset = mesh.Offset + Vector3.new(1,1,1)
- sword.Equipped:connect(unsheathanimation)
- sword.Equipped:connect(unsheathsound)
- wait(sound2.TimeLength)
- sword.Activated:connect(animate)
- handle.Touched:connect(damage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement