SHOW:
|
|
- or go back to the newest paste.
1 | - | local p = game.Players.LocalPlayer |
1 | + | |
2 | - | local char = p.Character |
2 | + | |
3 | - | local larm = char["Left Arm"] |
3 | + | |
4 | - | local rarm = char["Right Arm"] |
4 | + | |
5 | - | local lleg = char["Left Leg"] |
5 | + | |
6 | - | local rleg = char["Right Leg"] |
6 | + | |
7 | - | local hed = char.Head |
7 | + | |
8 | - | local torso = char.Torso |
8 | + | |
9 | - | local hum = char.Humanoid |
9 | + | |
10 | - | local weld = Instance.new("Weld",torso) |
10 | + | |
11 | - | weld.Part0 = torso |
11 | + | |
12 | hum = char:FindFirstChildOfClass'Humanoid' | |
13 | - | larm.Transparency = 1 |
13 | + | |
14 | - | rarm.Transparency = 1 |
14 | + | |
15 | - | lleg.Transparency = 1 |
15 | + | |
16 | - | rleg.Transparency = 1 |
16 | + | |
17 | - | hed.Transparency = 1 |
17 | + | |
18 | - | torso.Transparency = 1 |
18 | + | |
19 | char.Head.face:Destroy() | |
20 | end | |
21 | - | local train = Instance.new("Part",torso) |
21 | + | |
22 | - | train.Anchored = true |
22 | + | |
23 | - | train.CanCollide = false |
23 | + | |
24 | - | train.Size = Vector3.new(5,5,5) |
24 | + | |
25 | - | train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) |
25 | + | |
26 | - | weld.Part1 = train |
26 | + | |
27 | - | weld.C1 = CFrame.new(0,-4.5,0) * CFrame.Angles(0,math.rad(0),0) |
27 | + | |
28 | - | train.Anchored = false |
28 | + | |
29 | - | local TrainMesh = Instance.new("SpecialMesh",train) |
29 | + | |
30 | - | TrainMesh.MeshType = Enum.MeshType.FileMesh |
30 | + | |
31 | - | TrainMesh.Scale = Vector3.new(0.60, 0.60, 0.60) |
31 | + | |
32 | - | TrainMesh.MeshId = "rbxassetid://1" |
32 | + | |
33 | - | TrainMesh.TextureId = "rbxassetid://1" |
33 | + | |
34 | eyesm = Instance.new('SpecialMesh', eyes) | |
35 | - | hum.WalkSpeed = 200; |
35 | + | eyesm.Scale = Vector3.new(10.99, 10.99, 0.10) |
36 | eyesm.MeshId = "rbxassetid://1032765290" | |
37 | eyesm.TextureId = "rbxassetid://1032765300" | |
38 | - | for i,v in pairs(char:GetChildren()) do |
38 | + | |
39 | - | if v:IsA("Part") then |
39 | + | |
40 | - | v.Transparency = 1; |
40 | + | |
41 | - | elseif v:IsA("Hat") then |
41 | + | |
42 | - | v:Destroy() |
42 | + | |
43 | - | elseif v:IsA("Model") then |
43 | + | |
44 | - | v:Destroy() |
44 | + | |
45 | - | end |
45 | + | eyesm.MeshId = "rbxassetid://1546840102" |
46 | eyesm.TextureId = "rbxassetid://1546840114" | |
47 | ||
48 | body = Instance.new('Part', char) | |
49 | - | local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 25; return s; end |
49 | + | |
50 | - | train.Touched:connect(function(p) |
50 | + | |
51 | - | if p.Parent then |
51 | + | |
52 | - | if p.Parent:IsA("Model") then |
52 | + | |
53 | - | if game.Players:FindFirstChild(p.Parent.Name) then |
53 | + | bodym.Scale = Vector3.new(0.46, 0.46, 0.46) |
54 | - | if p.Parent.Name ~= game.Players.LocalPlayer.Name then |
54 | + | bodym.MeshId = "rbxassetid://1546840102" |
55 | - | game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints() |
55 | + | bodym.TextureId = "rbxassetid://1546840114" |
56 | - | local Whistle = SFX(0) |
56 | + | |
57 | - | Whistle:Play() |
57 | + | |
58 | - | end |
58 | + | |
59 | - | end |
59 | + | |
60 | - | end |
60 | + | |
61 | - | end |
61 | + | |
62 | weld2.Part0 = body | |
63 | weld2.Part1 = root | |
64 | - | local Music = SFX(234125750) |
64 | + | weld2.C0 = CFrame.new(0,1.1,0) |
65 | - | Music.Looped = true; |
65 | + | |
66 | - | wait(1) |
66 | + | music.SoundId="rbxassetid://0" |
67 | - | Music:Play(); |
67 | + | |
68 | music.Looped=true | |
69 | - | local particleemitter = Instance.new("ParticleEmitter", torso) |
69 | + | |
70 | - | particleemitter.Texture = "http://www.roblox.com/asset/?id=157979926" |
70 | + | |
71 | - | particleemitter.VelocitySpread = 180 |
71 | + | TheWay1.SoundId = "rbxassetid://0" |
72 | - | particleemitter.Lifetime = NumberRange.new(5) |
72 | + | |
73 | - | particleemitter.Speed = NumberRange.new(6) |
73 | + | |
74 | - | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)}) |
74 | + | |
75 | - | particleemitter.RotSpeed = NumberRange.new(-55, 55) |
75 | + | TheWay2.SoundId = "rbxassetid://0" |
76 | - | particleemitter.Rate = 150 |
76 | + | |
77 | - | particleemitter.Rotation = NumberRange.new(-55, 55) |
77 | + | |
78 | - | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)}) |
78 | + | |
79 | - | particleemitter.LightEmission = 0 |
79 | + | |
80 | - | particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here |
80 | + | |
81 | Spit.Name = "Spit" | |
82 | Click = Instance.new('Sound', body) | |
83 | Click.SoundId = "rbxassetid://132742415" | |
84 | - | local plr = game.Players.LocalPlayer |
84 | + | |
85 | - | local chr = plr.Character |
85 | + | |
86 | - | local maus = plr:GetMouse() |
86 | + | |
87 | - | local PGui=plr.PlayerGui |
87 | + | |
88 | - | local lleg = chr["Left Leg"] |
88 | + | |
89 | - | local rleg = chr["Right Leg"] |
89 | + | |
90 | - | local larm = chr["Left Arm"] |
90 | + | |
91 | - | local rarm = chr["Right Arm"] |
91 | + | |
92 | - | local hed = chr.Head |
92 | + | |
93 | - | local rutprt = chr.HumanoidRootPart |
93 | + | |
94 | - | local torso = chr.Torso |
94 | + | |
95 | - | local pseudohead=hed:Clone() |
95 | + | |
96 | - | for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end |
96 | + | |
97 | - | pseudohead.Name='PseudoHead' |
97 | + | |
98 | - | pseudohead.Parent=chr.Head |
98 | + | |
99 | - | local pseudoweld=Instance.new('Weld',torso) |
99 | + | |
100 | - | pseudoweld.Part0=hed |
100 | + | TextButton.Text = "goomba?" |
101 | - | pseudoweld.Name='PseudoHeadWeld' |
101 | + | |
102 | - | pseudoweld.Part1=pseudohead |
102 | + | |
103 | - | hed.Transparency=1 |
103 | + | |
104 | - | for i,x in pairs(chr:GetChildren()) do |
104 | + | |
105 | - | if x:IsA'HHat' then x:destroy'' end end |
105 | + | |
106 | - | for i,x in pairs(chr:GetChildren()) do |
106 | + | |
107 | - | for a,v in pairs(x:GetChildren()) do |
107 | + | |
108 | - | if v:IsA'CharacterMesh' then v:destroy'' |
108 | + | |
109 | local music = Instance.new("Sound") | |
110 | local asset = "rbxassetid://" | |
111 | music.SoundId = asset .. ID | |
112 | music.Parent = workspace | |
113 | music.Volume = 999 | |
114 | music.Looped = false | |
115 | music:Play() | |
116 | end | |
117 | --[[Connecting functions!]] | |
118 | TextButton.MouseButton1Down:connect(function() | |
119 | PlayMusic(306587162) | |
120 | end) | |
121 | ||
122 | -- Objects | |
123 | ||
124 | local ScreenGui = Instance.new("ScreenGui") | |
125 | local TextButton = Instance.new("TextButton") | |
126 | ||
127 | -- Properties | |
128 | ||
129 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
130 | ||
131 | TextButton.Parent = ScreenGui | |
132 | TextButton.BackgroundColor3 = Color3.new(1, 1, 1) | |
133 | TextButton.Size = UDim2.new(0, 150, 0, 50) | |
134 | TextButton.Font = Enum.Font.SourceSans | |
135 | TextButton.FontSize = Enum.FontSize.Size14 | |
136 | TextButton.Text = "sugar Plums!" | |
137 | TextButton.TextSize = 14 | |
138 | ||
139 | --[[Function/s being made!]] | |
140 | function PlayMusic(ID) | |
141 | for i, v in pairs (game.Workspace:GetChildren()) do | |
142 | if v:IsA("Sound") then | |
143 | end | |
144 | end | |
145 | local music = Instance.new("Sound") | |
146 | local asset = "rbxassetid://" | |
147 | music.SoundId = asset .. ID | |
148 | - | eyesm.Scale = Vector3.new(0.40, 0.40, 0.40) |
148 | + | |
149 | - | eyesm.MeshId = "rbxassetid://1" |
149 | + | |
150 | - | eyesm.TextureId = "rbxassetid://1" |
150 | + | |
151 | music:Play() | |
152 | end | |
153 | --[[Connecting functions!]] | |
154 | TextButton.MouseButton1Down:connect(function() | |
155 | PlayMusic(957496845) | |
156 | end) | |
157 | ||
158 | - | eyesm.MeshId = "rbxassetid://1302514140" |
158 | + | |
159 | - | eyesm.TextureId = "rbxassetid://1302517578" |
159 | + | p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end |
160 | ||
161 | print("Finding Goomba... (This may take a year!)") | |
162 | wait (1) | |
163 | print("Found Goomber. Now giving the headbutt.") | |
164 | local user = game.Players.LocalPlayer.Backpack | |
165 | local sword = Instance.new("Tool",user) | |
166 | - | bodym.Scale = Vector3.new(0.40, 0.40, 0.40) |
166 | + | print("Gave the player the sword. Enjoy!") |
167 | - | bodym.MeshId = "rbxassetid://1301935915" |
167 | + | local handle = Instance.new("Part",sword) |
168 | - | bodym.TextureId = "rbxassetid://1300137893" |
168 | + | local mesh = Instance.new("SpecialMesh",handle) |
169 | local DAMAGE = 15 | |
170 | local sound = Instance.new("Sound",handle) | |
171 | local sound2 = Instance.new("Sound",handle) | |
172 | sword.Name = "Sword" | |
173 | script.Parent = sword | |
174 | script.Name = "SwordScript" | |
175 | --local animation = Instance.new("Animation",script) | |
176 | ||
177 | - | weld2.C0 = CFrame.new(0,2.1,0) |
177 | + | --animation.AnimationId = "http://www.roblox.com/Asset?ID=992817684" |
178 | ||
179 | - | music.SoundId="rbxassetid://1303585722" |
179 | + | sound.SoundId = "rbxasset://sounds//swordlunge.wav" |
180 | sound.Volume = 3 | |
181 | sound.PlaybackSpeed = 1.17 | |
182 | sound.Name = "Slash" | |
183 | sound2.SoundId = "rbxasset://sounds//unsheath.wav" | |
184 | - | TheWay1.SoundId = "rbxassetid://1303585722" |
184 | + | sound2.Volume = 3 |
185 | sound2.PlaybackSpeed = 0.8 | |
186 | sound2.Volume = 3 | |
187 | sound2.Name = "Unsheath" | |
188 | - | TheWay2.SoundId = "rbxassetid://1303652161" |
188 | + | |
189 | function unsheathanimation() | |
190 | sword.GripPos = sword.GripPos + Vector3.new(0,5,0) | |
191 | for i = 1,5 do | |
192 | sword.GripPos = sword.GripPos + Vector3.new(0,-1,0) | |
193 | wait (0.1) | |
194 | end | |
195 | end | |
196 | ||
197 | function unsheathsound() | |
198 | sound2:Play() | |
199 | end | |
200 | ||
201 | function damage(hit) | |
202 | ||
203 | local h = hit.Parent:FindFirstChild("Humanoid") | |
204 | if (h ~= nil) then | |
205 | h:TakeDamage(DAMAGE / 4) | |
206 | end | |
207 | end | |
208 | ||
209 | function animate() | |
210 | --4 | |
211 | sound:Play() | |
212 | for i = 1,5 do | |
213 | - | TextButton.Text = "way?" |
213 | + | sword.GripUp = sword.GripUp + Vector3.new(0,0,1) |
214 | wait (0) | |
215 | end | |
216 | sword.GripUp = sword.GripUp + Vector3.new(0,0,-1) | |
217 | end | |
218 | handle.Size = handle.Size + Vector3.new(-4,-1,-2) | |
219 | handle.Size = handle.Size + Vector3.new(0.20, 3.20, 0.20) | |
220 | handle.Name = "Handle" | |
221 | ||
222 | mesh.MeshType = "FileMesh" | |
223 | mesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
224 | mesh.TextureId = "http://www.roblox.com/asset/?ID=0" | |
225 | mesh.Offset = mesh.Offset + Vector3.new(1,1,1) | |
226 | ||
227 | sword.Equipped:connect(unsheathanimation) | |
228 | sword.Equipped:connect(unsheathsound) | |
229 | wait(sound2.TimeLength) | |
230 | sword.Activated:connect(animate) | |
231 | handle.Touched:connect(damage) |