SHOW:
|
|
- or go back to the newest paste.
1 | me = game.Players.ericthefabulous | |
2 | char = me.Character | |
3 | Modelname = "Warhammah" | |
4 | Toolname = "Warhammar" | |
5 | Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} | |
6 | necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
7 | - | attacking = false |
7 | + | |
8 | effectOn = false | |
9 | - | hurt = false |
9 | + | Hurt = false |
10 | Leghurt = false | |
11 | - | grabbed = nil |
11 | + | Deb = true |
12 | LegDeb = true | |
13 | - | mode = "drop" |
13 | + | Able = true |
14 | Resting = false | |
15 | - | bloodcolors = {"Really red", "Bright red"} |
15 | + | RestingAnim = false |
16 | AbleG = true | |
17 | Prop = {Damage = 42, Legdmg = 34, AS = 28, ShockDMG = 50, Rage = 7000000, RageIncome = 7000, MaxRage = 7000000} | |
18 | Prop.AS = Prop.AS/300 | |
19 | - | function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) |
19 | + | Cam = workspace.CurrentCamera |
20 | ||
21 | - | part.Parent = parent |
21 | + | ToolIcon = "http://www.roblox.com/asset/?id=49192762" |
22 | MouseIc = "http://www.roblox.com/asset/?id=49192792" | |
23 | - | part.formFactor = form |
23 | + | MouseDo = "http://www.roblox.com/asset/?id=49192819" |
24 | ||
25 | - | part.CanCollide = collide |
25 | + | Add = { |
26 | Sphere = function(P) | |
27 | - | part.Transparency = tran |
27 | + | local m = Instance.new("SpecialMesh",P) |
28 | m.MeshType = "Sphere" | |
29 | - | part.Reflectance = ref |
29 | + | return m |
30 | end, | |
31 | - | part.Size = Vector3.new(x,y,z) |
31 | + | BF = function(P) |
32 | local bf = Instance.new("BodyForce",P) | |
33 | - | part.BrickColor = BrickColor.new(color) |
33 | + | bf.force = Vector3.new(0, P:GetMass()*187, 0) |
34 | return bf | |
35 | - | part.TopSurface = 0 |
35 | + | end, |
36 | BP = function(P) | |
37 | - | part.BottomSurface = 0 |
37 | + | local bp = Instance.new("BodyPosition",P) |
38 | bp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
39 | - | part.Anchored = anchor |
39 | + | bp.P = 14000 |
40 | return bp | |
41 | - | part.Locked = true |
41 | + | end, |
42 | BG = function(P) | |
43 | - | part:BreakJoints() |
43 | + | local bg = Instance.new("BodyGyro",P) |
44 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
45 | bg.P = 14000 | |
46 | return bg | |
47 | end, | |
48 | - | function weld(w, p, p1, a, b, c, x, y, z) |
48 | + | Mesh = function(P, ID, x, y, z) |
49 | local m = Instance.new("SpecialMesh") | |
50 | - | w.Parent = p |
50 | + | m.MeshId = ID |
51 | m.Scale = Vector3.new(x, y, z) | |
52 | - | w.Part0 = p |
52 | + | m.Parent = P |
53 | return m | |
54 | - | w.Part1 = p1 |
54 | + | end, |
55 | Sound = function(P, ID, vol, pitch) | |
56 | - | w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z) |
56 | + | local s = Instance.new("Sound") |
57 | s.SoundId = ID | |
58 | s.Volume = vol | |
59 | s.Pitch = pitch | |
60 | s.Parent = P | |
61 | - | function mesh(mesh, parent, x, y, z, type) |
61 | + | return s |
62 | end | |
63 | - | mesh.Parent = parent |
63 | + | } |
64 | ||
65 | - | mesh.Scale = Vector3.new(x, y, z) |
65 | + | function find(tab, arg) |
66 | local ah = nil | |
67 | - | mesh.MeshType = type |
67 | + | for i,v in pairs(tab) do |
68 | if v == arg then | |
69 | ah = v | |
70 | end | |
71 | end | |
72 | - | function remgui() |
72 | + | return ah |
73 | end | |
74 | - | for _,v in pairs(me.PlayerGui:GetChildren()) do |
74 | + | |
75 | function getAllParts(from) | |
76 | - | if v.Name == "Modeshow" then |
76 | + | local t = {} |
77 | function getParts(where) | |
78 | - | v:remove() |
78 | + | for i, v in pairs(where:children()) do |
79 | if v:IsA("BasePart") then | |
80 | if v.Parent ~= char and v.Parent.Parent ~= char then | |
81 | table.insert(t, v) | |
82 | end | |
83 | end | |
84 | getParts(v) | |
85 | end | |
86 | end | |
87 | - | function inform(text,delay) |
87 | + | getParts(workspace) |
88 | return t | |
89 | - | remgui() |
89 | + | |
90 | ||
91 | - | local sc = Instance.new("ScreenGui") |
91 | + | function RayCast(pos1, pos2, maxDist, forward) |
92 | local list = getAllParts(workspace) | |
93 | - | sc.Parent = me.PlayerGui |
93 | + | local pos0 = pos1 |
94 | for dist = 1, maxDist, forward do | |
95 | - | sc.Name = "Modeshow" |
95 | + | pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p |
96 | for _, v in pairs(list) do | |
97 | - | local bak = Instance.new("Frame",sc) |
97 | + | local pos3 = v.CFrame:pointToObjectSpace(pos0) |
98 | local s = v.Size | |
99 | - | bak.BackgroundColor3 = Color3.new(1,1,1) |
99 | + | if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then |
100 | return pos0, v | |
101 | - | bak.Size = UDim2.new(0.94,0,0.1,0) |
101 | + | end |
102 | end | |
103 | - | bak.Position = UDim2.new(0.03,0,0.037,0) |
103 | + | end |
104 | return pos0, nil | |
105 | - | bak.BorderSizePixel = 0 |
105 | + | |
106 | ||
107 | - | local gi = Instance.new("TextLabel",sc) |
107 | + | function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break) |
108 | local p = Instance.new("Part") | |
109 | - | gi.Size = UDim2.new(0.92,0,0.09,0) |
109 | + | p.formFactor = "Custom" |
110 | p.Anchored = Anchor | |
111 | - | gi.BackgroundColor3 = Color3.new(0,0,0) |
111 | + | p.CanCollide = Collide |
112 | p.Transparency = Tran | |
113 | - | gi.Position = UDim2.new(0.04,0,0.042,0) |
113 | + | p.Reflectance = Ref |
114 | p.BrickColor = BrickColor.new(Color) | |
115 | - | gi.TextColor3 = Color3.new(1,1,1) |
115 | + | for _, Surf in pairs(Surfaces) do |
116 | p[Surf] = "Smooth" | |
117 | - | gi.FontSize = "Size12" |
117 | + | end |
118 | p.Size = Vector3.new(X, Y, Z) | |
119 | - | gi.Text = text |
119 | + | if Break then |
120 | p:BreakJoints() | |
121 | else p:MakeJoints() end | |
122 | p.Parent = Parent | |
123 | - | wait(delay) |
123 | + | p.Locked = true |
124 | return p | |
125 | - | sc:remove() |
125 | + | |
126 | ||
127 | function Weld(p0, p1, x, y, z, a, b, c) | |
128 | local w = Instance.new("Weld") | |
129 | w.Parent = p0 | |
130 | w.Part0 = p0 | |
131 | w.Part1 = p1 | |
132 | - | if char:findFirstChild("Bricks",true) then |
132 | + | w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c) |
133 | return w | |
134 | - | char:findFirstChild("Bricks",true):remove() |
134 | + | |
135 | ||
136 | function ComputePos(pos1, pos2) | |
137 | local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z) | |
138 | return CFrame.new(pos1, pos3) | |
139 | - | bricks = Instance.new("Model",me.Character) |
139 | + | |
140 | ||
141 | - | bricks.Name = "Bricks" |
141 | + | function getHumanoid(c) |
142 | local h = nil | |
143 | for i,v in pairs(c:children()) do | |
144 | - | --Parts-------------------------Parts-------------------------Parts-------------------------Parts---------------------- |
144 | + | if v:IsA("Humanoid") and c ~= char then |
145 | if v.Health > 0 then | |
146 | h = v | |
147 | - | rarm = char:findFirstChild("Right Arm") |
147 | + | end |
148 | end | |
149 | - | larm = char:findFirstChild("Left Arm") |
149 | + | end |
150 | return h | |
151 | - | lleg = char:findFirstChild("Left Leg") |
151 | + | |
152 | ||
153 | - | torso = char:findFirstChild("Torso") |
153 | + | for i,v in pairs(char:children()) do |
154 | if v.Name == Modelname then | |
155 | - | hum = char:findFirstChild("Humanoid") |
155 | + | v:remove() |
156 | end | |
157 | end | |
158 | - | righthold = Instance.new("Part") |
158 | + | |
159 | pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end) | |
160 | - | prop(righthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom") |
160 | + | |
161 | Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui")) | |
162 | - | w11 = Instance.new("Weld") |
162 | + | Sc.Name = "RaigMeter" |
163 | ||
164 | - | weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0) |
164 | + | Fr = Instance.new("Frame",Sc) |
165 | Fr.Size = UDim2.new(0, 250, 0, 28) | |
166 | Fr.Position = UDim2.new(0.5, -125, 0, 5) | |
167 | - | lefthold = Instance.new("Part") |
167 | + | Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1) |
168 | ||
169 | - | prop(lefthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom") |
169 | + | Met = Instance.new("Frame", Fr) |
170 | Met.Size = UDim2.new(1, -10, 1, -6) | |
171 | - | w12 = Instance.new("Weld") |
171 | + | Met.Position = UDim2.new(0, 5, 0, 3) |
172 | Met.BackgroundColor3 = Color3.new(0, 0, 0) | |
173 | - | weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0) |
173 | + | Met.BorderSizePixel = 0 |
174 | ||
175 | Meter = Instance.new("ImageLabel", Met) | |
176 | - | hold = Instance.new("Part") |
176 | + | Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2) |
177 | Meter.Position = UDim2.new(0, 0, 0, 1) | |
178 | - | prop(hold, bricks, false, 0, 0, 0.2, 0.4, 0.7, "Really red", false, "Custom") |
178 | + | Meter.Image = "http://www.roblox.com/asset/?id=48965808" |
179 | Meter.BorderSizePixel = 0 | |
180 | - | oh = Instance.new("Weld") |
180 | + | Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1) |
181 | ||
182 | - | weld(oh, lleg, hold, -math.pi/1.4, 0, math.rad(35), 0.55, -0.9, 0.3) |
182 | + | Tx = Instance.new("TextLabel", Met) |
183 | Tx.Size = UDim2.new(0, 0, 1, 0) | |
184 | Tx.Position = UDim2.new(0, 5, 0, 0) | |
185 | - | knife = Instance.new("Part") |
185 | + | Tx.Text = Prop.Rage.." / "..Prop.MaxRage |
186 | Tx.Font = "ArialBold" | |
187 | - | prop(knife, bricks, false, 0, 0, 0.35, 1.1, 0.5, "Really black", false, "Custom") |
187 | + | Tx.FontSize = "Size18" |
188 | Tx.BackgroundTransparency = 1 | |
189 | - | orr = Instance.new("Weld") |
189 | + | Tx.TextColor3 = Color3.new(1, 0, 0) |
190 | Tx.TextXAlignment = "Left" | |
191 | - | weld(orr, hold, knife, 0, 0, 0, 0, 0.7, 0) |
191 | + | |
192 | laast = Prop.Rage | |
193 | - | ar = Instance.new("Weld") |
193 | + | |
194 | while true do | |
195 | - | weld(ar, lefthold, nil, math.pi/2, 0, math.pi, 0, 0, 0) |
195 | + | wait() |
196 | if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end | |
197 | if laast ~= Prop.Rage then | |
198 | Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2) | |
199 | - | blade = Instance.new("Part") |
199 | + | laast = Prop.Rage |
200 | Tx.Text = Prop.Rage.." / "..Prop.MaxRage | |
201 | - | prop(blade, bricks, false, 0, 0, 0.1, 1.5, 0.4, "Medium grey", false, "Custom") |
201 | + | end |
202 | end | |
203 | - | Instance.new("BlockMesh",blade).Scale = Vector3.new(0.3,1,1) |
203 | + | |
204 | ||
205 | - | w2 = Instance.new("Weld") |
205 | + | torso = char.Torso |
206 | neck = torso.Neck | |
207 | - | weld(w2, knife, blade, 0, 0, 0, 0, -1.2, 0) |
207 | + | hum = char.Humanoid |
208 | Rarm = char["Right Arm"] | |
209 | Larm = char["Left Arm"] | |
210 | - | blade2 = Instance.new("Part") |
210 | + | Rleg = char["Right Leg"] |
211 | Lleg = char["Left Leg"] | |
212 | - | prop(blade2, bricks, false, 0, 0, 0.1, 0.5, 0.4, "Medium grey", false, "Custom") |
212 | + | |
213 | hc = Instance.new("Humanoid") | |
214 | - | local mew = Instance.new("SpecialMesh",blade2) |
214 | + | hc.Health = 0 |
215 | hc.MaxHealth = 0 | |
216 | - | mew.MeshType = "Wedge" |
216 | + | |
217 | slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8) | |
218 | - | mew.Scale = Vector3.new(0.3,1,1) |
218 | + | hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6) |
219 | charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65) | |
220 | - | w3 = Instance.new("Weld") |
220 | + | boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3) |
221 | smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35) | |
222 | - | weld(w3, blade, blade2, 0, 0, 0, 0, -1, 0) |
222 | + | boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18) |
223 | equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7) | |
224 | ||
225 | function PlaySound(sound, pitch) | |
226 | local s = sound:clone() | |
227 | if pitch ~= nil then | |
228 | - | rb = Instance.new("Part") |
228 | + | if tonumber(pitch) then |
229 | s.Pitch = tonumber(pitch) | |
230 | - | prop(rb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom") |
230 | + | end |
231 | end | |
232 | - | w13 = Instance.new("Weld") |
232 | + | s.Parent = torso |
233 | s.PlayOnRemove = true | |
234 | - | weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0) |
234 | + | coroutine.resume(coroutine.create(function() |
235 | wait() | |
236 | s:remove() | |
237 | - | lb = Instance.new("Part") |
237 | + | end)) |
238 | end | |
239 | - | prop(lb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom") |
239 | + | |
240 | Mo = Instance.new("Model") | |
241 | - | w14 = Instance.new("Weld") |
241 | + | Mo.Name = Modelname |
242 | ||
243 | - | weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0) |
243 | + | RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) |
244 | LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
245 | RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
246 | - | rw = Instance.new("Weld") |
246 | + | LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) |
247 | ||
248 | - | weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0) |
248 | + | RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0) |
249 | LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0) | |
250 | RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0) | |
251 | - | lw = Instance.new("Weld") |
251 | + | LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0) |
252 | ||
253 | - | weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0) |
253 | + | RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0) |
254 | LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0) | |
255 | RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0) | |
256 | - | grabweld = nil |
256 | + | LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0) |
257 | ||
258 | - | platlol = nil |
258 | + | HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) |
259 | HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0) | |
260 | - | lolhum = nil |
260 | + | HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0) |
261 | ||
262 | TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140)) | |
263 | - | function touch(h) |
263 | + | |
264 | RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil | |
265 | - | if hurt then |
265 | + | |
266 | handle = Part(Mo, false, false, 0, 0, "Navy blue", 0.4, 5, 0.4, true) | |
267 | - | if grabbed == nil then |
267 | + | handle.Name = "Handle" |
268 | Instance.new("SpecialMesh",handle) | |
269 | - | local hu = h.Parent:findFirstChild("Humanoid") |
269 | + | |
270 | maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true) | |
271 | - | local head = h.Parent:findFirstChild("Head") |
271 | + | Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0) |
272 | ||
273 | - | local torz = h.Parent:findFirstChild("Torso") |
273 | + | DMGParts = {} |
274 | ||
275 | - | if hu ~= nil and head ~= nil and torz ~= nil and h.Parent.Name ~= name then |
275 | + | for i = 0, 135, 45 do |
276 | local tip = Part(Mo, false, false, 0, 0, "Dark grey", 0.54, 1.3, 2.2, true) | |
277 | - | if hu.Health > 0 then |
277 | + | Instance.new("BlockMesh",tip) |
278 | Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i)) | |
279 | - | grabbed = torz |
279 | + | table.insert(DMGParts, tip) |
280 | for a = -0.9, 0.9, 1.8 do | |
281 | - | hu.PlatformStand = true |
281 | + | for x = 0, math.pi, math.pi do |
282 | local spike = Part(Mo, false, false, 0, 0, "Medium grey", 0.3, 0.5, 0.3, true) | |
283 | - | local w = Instance.new("Weld") |
283 | + | local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0) |
284 | w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0) | |
285 | - | weld(w,righthold,grabbed,math.pi/2,0.2,0,0.7,-0.9,-0.6) |
285 | + | w.C1 = CFrame.new(0, -1, 0) |
286 | Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14) | |
287 | - | grabweld = w |
287 | + | local trim = Part(Mo, false, false, 0, 0, "Really black", 0.67, 0.1, 0.5, true) |
288 | local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0) | |
289 | - | lolhum = hu |
289 | + | w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0) |
290 | w2.C1 = CFrame.new(0, -0.58, 0) | |
291 | - | local lolxd = true |
291 | + | end |
292 | end | |
293 | - | platlol = lolxd |
293 | + | |
294 | ||
295 | - | hu.Changed:connect(function(prop) |
295 | + | spiketip = Part(Mo, false, false, 0, 0.2, "Navy blue", 0.3, 0.8, 0.3, true) |
296 | Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0) | |
297 | - | if prop == "PlatformStand" and platlol then |
297 | + | Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17) |
298 | ||
299 | - | hu.PlatformStand = true |
299 | + | table.insert(DMGParts, spiketip) |
300 | ||
301 | local handletip1 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true) | |
302 | local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0) | |
303 | - | end) |
303 | + | w1.C0 = CFrame.new(0, -2.6, 0) |
304 | Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85) | |
305 | ||
306 | local handletip2 = Part(Mo, false, false, 0, 0.2, "Dark grey", 0.5, 0.5, 0.5, true) | |
307 | Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0) | |
308 | Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95) | |
309 | ||
310 | ||
311 | Mo.Parent = char | |
312 | TH.Part1 = handle | |
313 | ||
314 | function showdmg(dmg, p, pos) | |
315 | local mo = Instance.new("Model") | |
316 | - | righthold.Touched:connect(touch) |
316 | + | mo.Name = dmg |
317 | local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true) | |
318 | - | lefthold.Touched:connect(touch) |
318 | + | pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0) |
319 | pa.Name = "Head" | |
320 | local hah = hc:clone() | |
321 | - | function bleed(part,po) |
321 | + | hah.Parent = mo |
322 | local bp = Add.BP(pa) | |
323 | - | local lol1 = math.random(5,30)/100 |
323 | + | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) |
324 | bp.position = p.Position + Vector3.new(0, 3+pos, 0) | |
325 | - | local lol2 = math.random(5,30)/100 |
325 | + | Add.BG(pa) |
326 | coroutine.resume(coroutine.create(function() | |
327 | - | local lol3 =math.random(5,30)/100 |
327 | + | wait() |
328 | mo.Parent = workspace | |
329 | - | local lol4 = math.random(1,#bloodcolors) |
329 | + | wait(1.4) |
330 | mo:remove() | |
331 | - | local p = Instance.new("Part") |
331 | + | end)) |
332 | end | |
333 | - | prop(p,part.Parent,false,0,0,lol1,lol2,lol3,bloodcolors[lol4],false,"Custom") |
333 | + | |
334 | ||
335 | - | p.CFrame = part.CFrame * CFrame.new(math.random(-5,5)/10,po,math.random(-5,5)/10) |
335 | + | function damage(hum, p, num, dm1, dm2) |
336 | local dmg = math.random(dm1, dm2) | |
337 | - | p.Velocity = Vector3.new(math.random(-190,190)/10,math.random(-190,190)/10,math.random(-190,190)/10) |
337 | + | hum.Health = hum.Health - dmg |
338 | showdmg(dmg, p, num) | |
339 | - | p.RotVelocity = Vector3.new(math.random(-400,400)/10,math.random(-400,400)/10,math.random(-400,400)/10) |
339 | + | return dmg |
340 | end | |
341 | ||
342 | function brickdamage(hit) | |
343 | - | wait(3) |
343 | + | local h = getHumanoid(hit.Parent) |
344 | if h ~= nil and Hurt and Deb then | |
345 | - | p:remove() |
345 | + | Deb = false |
346 | local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage) | |
347 | PlaySound(hitsound) | |
348 | Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome)) | |
349 | wait(0.3) | |
350 | Deb = true | |
351 | end | |
352 | end | |
353 | ||
354 | - | h = Instance.new("HopperBin",me.Backpack) |
354 | + | function legdamage(hit) |
355 | local h = getHumanoid(hit.Parent) | |
356 | - | h.Name = "Grab" |
356 | + | if h ~= nil and Leghurt and LegDeb then |
357 | LegDeb = false | |
358 | - | script.Parent = h |
358 | + | local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg) |
359 | PlaySound(hitsound) | |
360 | Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome)) | |
361 | coroutine.resume(coroutine.create(function() | |
362 | local haha = math.random(1,3) | |
363 | if haha == 1 then | |
364 | h.PlatformStand = true | |
365 | wait() | |
366 | local ps = getAllParts(h.Parent) | |
367 | for i, v in pairs(ps) do | |
368 | - | orr.Part1 = nil |
368 | + | if v.Anchored == false then |
369 | v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40 | |
370 | - | ar.Part1 = knife |
370 | + | v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)) |
371 | end | |
372 | - | mouse.Button1Down:connect(function() |
372 | + | end |
373 | wait(0.8) | |
374 | - | if attacking == false then |
374 | + | h.PlatformStand = false |
375 | end | |
376 | - | attacking = true |
376 | + | end)) |
377 | wait(0.2) | |
378 | - | lw.Part1 = larm |
378 | + | LegDeb = true |
379 | end | |
380 | - | rw.Part1 = rarm |
380 | + | |
381 | ||
382 | - | hurt = true |
382 | + | for i, v in pairs({Rleg, Lleg}) do |
383 | v.Touched:connect(legdamage) | |
384 | - | for i=1, 8 do |
384 | + | |
385 | ||
386 | - | rw.C0 = rw.C0 * CFrame.new(-0.03,0,-0.08) * CFrame.fromEulerAnglesXYZ(0.18,0.04,0) |
386 | + | for i,v in pairs(DMGParts) do |
387 | v.Touched:connect(brickdamage) | |
388 | - | lw.C0 = lw.C0 * CFrame.new(0.06,0,-0.06) * CFrame.fromEulerAnglesXYZ(0.15,-0.11,-0.05) |
388 | + | |
389 | ||
390 | - | wait() |
390 | + | |
391 | h = Instance.new("HopperBin",me.Backpack) | |
392 | h.Name = Toolname | |
393 | h.TextureId = ToolIcon | |
394 | - | wait(1) |
394 | + | script.Parent = h |
395 | end | |
396 | - | hurt = false |
396 | + | |
397 | bin = script.Parent | |
398 | - | if grabbed == nil then |
398 | + | |
399 | function StartEffect(part) | |
400 | - | for i=1, 4 do |
400 | + | effectOn = true |
401 | local lastPoint = part.Position | |
402 | - | rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0) |
402 | + | coroutine.resume(coroutine.create(function() |
403 | while effectOn do | |
404 | - | lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05) |
404 | + | wait() |
405 | local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
406 | - | wait() |
406 | + | local mag = (lastPoint - part.Position).magnitude |
407 | local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true) | |
408 | local m = Instance.new("SpecialMesh",p) | |
409 | p.CFrame = point * CFrame.new(0, mag/2, 0) | |
410 | - | lw.C0 = CFrame.new(0,0,0) |
410 | + | m.Scale = Vector3.new(1.2, mag+0.6, 1.2) |
411 | lastPoint = part.Position | |
412 | - | rw.C0 = CFrame.new(0,0,0) |
412 | + | coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end)) |
413 | end | |
414 | - | lw.Part1 = nil |
414 | + | end)) |
415 | end | |
416 | - | rw.Part1 = nil |
416 | + | |
417 | function EndEffect() | |
418 | - | attacking = false |
418 | + | effectOn = false |
419 | end | |
420 | ||
421 | function detach(bool) | |
422 | - | elseif hurt == false and grabbed ~= nil and mode == "drop" then |
422 | + | LLW.C0 = CFrame.new(0, 0, 0) |
423 | RLW.C0 = CFrame.new(0, 0, 0) | |
424 | - | grabweld:remove() |
424 | + | LAW.C0 = CFrame.new(0,0,0) |
425 | RAW.C0 = CFrame.new(0, 0, 0) | |
426 | - | grabweld = nil |
426 | + | if bool then |
427 | LLW.Part1 = nil | |
428 | - | platlol = false |
428 | + | RLW.Part1 = nil |
429 | RAW.Part1 = nil | |
430 | - | grabbed = nil |
430 | + | LAW.Part1 = nil |
431 | end | |
432 | - | lolhum.PlatformStand = false |
432 | + | |
433 | ||
434 | - | lolhum = nil |
434 | + | function attach() |
435 | RAW.Part1 = Rarm | |
436 | - | for i=1, 4 do |
436 | + | LAW.Part1 = Larm |
437 | RLW.Part1 = Rleg | |
438 | - | rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0) |
438 | + | LLW.Part1 = Lleg |
439 | end | |
440 | - | lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0) |
440 | + | |
441 | function normal() | |
442 | - | wait() |
442 | + | neck.C0 = necko |
443 | RAW.C0 = RAWStand | |
444 | LAW.C0 = LAWStand | |
445 | RLW.C0 = RLWStand | |
446 | - | lw.C0 = CFrame.new(0,0,0) |
446 | + | LLW.C0 = LLWStand |
447 | RAW.C1 = CFrame.new(0, 0.5, 0) | |
448 | - | rw.C0 = CFrame.new(0,0,0) |
448 | + | LAW.C1 = CFrame.new(0, 0.5, 0) |
449 | RLW.C1 = CFrame.new(0, 0.8, 0) | |
450 | - | lw.Part1 = nil |
450 | + | LLW.C1 = CFrame.new(0, 0.8, 0) |
451 | HW.C0 = HWStand | |
452 | - | rw.Part1 = nil |
452 | + | |
453 | ||
454 | - | attacking = false |
454 | + | function idleanim() |
455 | attach() | |
456 | - | platlol = nil |
456 | + | for i = 0, 10, 10/22 do |
457 | RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0) | |
458 | - | elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "throw" then |
458 | + | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0) |
459 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6)) | |
460 | - | grabweld:remove() |
460 | + | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6)) |
461 | neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0) | |
462 | - | grabweld = nil |
462 | + | if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end |
463 | wait() | |
464 | - | local bf = Instance.new("BodyForce",grabbed) |
464 | + | end |
465 | wait() | |
466 | - | bf.force = torso.CFrame.lookVector * 8500 |
466 | + | for i = 10, 0, -10/29 do |
467 | RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0) | |
468 | - | bf.force = bf.force + Vector3.new(0,7400,0) |
468 | + | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0) |
469 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6)) | |
470 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6)) | |
471 | neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0) | |
472 | - | wait(0.12) |
472 | + | if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end |
473 | wait() | |
474 | - | bf:remove() |
474 | + | end |
475 | normal() | |
476 | end | |
477 | ||
478 | - | for i=1, 6 do |
478 | + | function runanim() |
479 | RLW.Part1 = nil | |
480 | - | rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.35,0,0) |
480 | + | LLW.Part1 = nil |
481 | end | |
482 | - | lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.18,0,0) |
482 | + | |
483 | coroutine.resume(coroutine.create(function() | |
484 | - | wait() |
484 | + | while true do |
485 | wait() | |
486 | if selected and Able == true and RestingAnim == false then | |
487 | if torso.Velocity.magnitude < 2 then | |
488 | - | for i=1, 4 do |
488 | + | idleanim() |
489 | wait() | |
490 | - | rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.47,0,0) |
490 | + | else |
491 | runanim() | |
492 | - | lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) |
492 | + | wait() |
493 | end | |
494 | - | wait() |
494 | + | end |
495 | end | |
496 | end)) | |
497 | ||
498 | - | wait(0.2) |
498 | + | function selectanim() |
499 | if RestingAnim == false and Able == true then | |
500 | - | platlol = false |
500 | + | local ah = CFrame.Angles(0, 0, math.rad(90)) |
501 | RAW.Part1 = Rarm | |
502 | - | grabbed = nil |
502 | + | for i = 0, 270, 270/5 do |
503 | RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0) | |
504 | - | lolhum.PlatformStand = false |
504 | + | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5)) |
505 | wait() | |
506 | - | lolhum = nil |
506 | + | end |
507 | HW.C0 = ah | |
508 | - | for i=1, 4 do |
508 | + | HW.Part1 = handle |
509 | TH.Part1 = nil | |
510 | - | rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0) |
510 | + | PlaySound(equip) |
511 | for i = 270, 70, -200/13 do | |
512 | - | lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0) |
512 | + | RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0) |
513 | neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5)) | |
514 | - | wait() |
514 | + | wait() |
515 | end | |
516 | attach() | |
517 | for i = 70, 120, 50/8 do | |
518 | - | lw.C0 = CFrame.new(0,0,0) |
518 | + | local asd = i-70 |
519 | RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4)) | |
520 | - | rw.C0 = CFrame.new(0,0,0) |
520 | + | LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0) |
521 | HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8)) | |
522 | - | lw.Part1 = nil |
522 | + | neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5))) |
523 | RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4)) | |
524 | - | rw.Part1 = nil |
524 | + | LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4)) |
525 | wait() | |
526 | - | attacking = false |
526 | + | end |
527 | if RAWStand == nil then | |
528 | - | platlol = nil |
528 | + | RAWStand = RAW.C0 |
529 | LAWStand = LAW.C0 | |
530 | - | elseif hurt == false and grabbed ~= nil and lolhum ~= nil and grabweld ~= nil and mode == "kill" then |
530 | + | RLWStand = RLW.C0 |
531 | LLWStand = LLW.C0 | |
532 | - | for i=1, 5 do |
532 | + | HWStand = HW.C0 |
533 | end | |
534 | - | lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03) |
534 | + | normal() |
535 | end | |
536 | - | wait() |
536 | + | |
537 | ||
538 | function deselanim() | |
539 | if RestingAnim == false and Able == true then | |
540 | - | local ne = grabbed:findFirstChild("Neck") |
540 | + | local ah = CFrame.Angles(0, 0, math.rad(90)) |
541 | for i = 120, 70, -50/8 do | |
542 | local asd = i-70 | |
543 | RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4)) | |
544 | - | local duh = grabbed |
544 | + | LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0) |
545 | HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8)) | |
546 | - | local duh2 = grabbed.Parent.Head |
546 | + | neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5))) |
547 | RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4)) | |
548 | - | local lolas = lolhum |
548 | + | LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4)) |
549 | wait() | |
550 | - | duh.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) |
550 | + | end |
551 | LLW.Part1 = nil | |
552 | - | for i=1, 60 do |
552 | + | RLW.Part1 = nil |
553 | LAW.Part1 = nil | |
554 | - | wait() |
554 | + | for i = 70, 270, 200/13 do |
555 | RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0) | |
556 | - | local hm = math.random(1,9) |
556 | + | neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5)) |
557 | wait() | |
558 | - | pcall(function() |
558 | + | end |
559 | HW.C0 = ah | |
560 | - | if hm == 1 then |
560 | + | HW.Part1 = nil |
561 | TH.Part1 = handle | |
562 | - | duh2.Sound.Pitch = math.random(90,110)/100 |
562 | + | for i = 270, 0, -270/6 do |
563 | RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0) | |
564 | - | duh2.Sound:play() |
564 | + | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5)) |
565 | wait() | |
566 | end | |
567 | neck.C0 = necko | |
568 | - | end) |
568 | + | detach(true) |
569 | end | |
570 | - | if hm > 0 and hm < 3 then |
570 | + | |
571 | ||
572 | - | bleed(duh,1) |
572 | + | function smash(mouse) |
573 | attach() | |
574 | - | bleed(duh2,-0.5) |
574 | + | local mouseHit = mouse |
575 | local Orig = torso.CFrame | |
576 | local bg = Add.BG(torso) | |
577 | local bp = Add.BP(torso) | |
578 | bp.position = Orig.p | |
579 | local CF = ComputePos(Orig.p, mouseHit) | |
580 | - | lolas.Health = 0 |
580 | + | local CF2 = CF |
581 | bg.cframe = CF2 | |
582 | - | for i=1, 85 do |
582 | + | PlaySound(slash) |
583 | for i = 0, 1, Prop.AS*1.1 do | |
584 | - | wait() |
584 | + | RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0) |
585 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0) | |
586 | - | local hm = math.random(1,9) |
586 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i)) |
587 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i)) | |
588 | - | pcall(function() |
588 | + | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i)) |
589 | neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i)) | |
590 | - | if hm == 1 then |
590 | + | wait() |
591 | end | |
592 | - | duh2.Sound.Pitch = math.random(90,110)/100 |
592 | + | bp.position = CF * CFrame.new(0, 0, -1.1).p |
593 | StartEffect(maintip) | |
594 | - | duh2.Sound:play() |
594 | + | Hurt = true |
595 | for i = 0, 1, Prop.AS*1.5 do | |
596 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0) | |
597 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0) | |
598 | - | end) |
598 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i)) |
599 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i)) | |
600 | - | if hm > 0 and hm < 3 then |
600 | + | HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30)) |
601 | neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i)) | |
602 | - | bleed(duh,1) |
602 | + | wait() |
603 | end | |
604 | - | bleed(duh2,-0.5) |
604 | + | Hurt = false |
605 | EndEffect() | |
606 | PlaySound(smashsound) | |
607 | bp.position = CF * CFrame.new(0, 0, -1.9).p | |
608 | for i = 0, 1, Prop.AS do | |
609 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0) | |
610 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0) | |
611 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0) | |
612 | - | for i=1, 3 do |
612 | + | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0) |
613 | HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i)) | |
614 | - | lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03) |
614 | + | neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i)) |
615 | wait() | |
616 | - | if ne ~= nil then |
616 | + | end |
617 | normal() | |
618 | - | grabbed.Neck.C0 = grabbed.Neck.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) |
618 | + | bg:remove() |
619 | bp:remove() | |
620 | end | |
621 | ||
622 | - | wait() |
622 | + | function swing(mouse) |
623 | attach() | |
624 | local mouseHit = mouse | |
625 | local Orig = torso.CFrame | |
626 | - | grabweld:remove() |
626 | + | local bg = Add.BG(torso) |
627 | local bp = Add.BP(torso) | |
628 | - | grabweld = nil |
628 | + | bp.position = Orig.p |
629 | local CF = ComputePos(Orig.p, mouseHit) | |
630 | - | for i=1, 4 do |
630 | + | local CF2 = CF |
631 | bg.cframe = CF2 | |
632 | - | lw.C0 = lw.C0 * CFrame.new(-0.04,-0.24,-0.2) * CFrame.fromEulerAnglesXYZ(0.1,0,0.06) |
632 | + | PlaySound(slash) |
633 | for i = 0, 1, Prop.AS*1.5 do | |
634 | - | wait() |
634 | + | RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0) |
635 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0) | |
636 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0) | |
637 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0) | |
638 | - | for i=1, 4 do |
638 | + | HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0) |
639 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i)) | |
640 | - | rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0) |
640 | + | bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0) |
641 | wait() | |
642 | - | lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05) |
642 | + | end |
643 | Hurt = true | |
644 | - | wait() |
644 | + | StartEffect(maintip) |
645 | for i = 0, 1, Prop.AS*1.3 do | |
646 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0) | |
647 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0) | |
648 | - | lw.C0 = CFrame.new(0,0,0) |
648 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0) |
649 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0) | |
650 | - | rw.C0 = CFrame.new(0,0,0) |
650 | + | HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i) |
651 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i)) | |
652 | - | lw.Part1 = nil |
652 | + | bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0) |
653 | wait() | |
654 | - | rw.Part1 = nil |
654 | + | end |
655 | EndEffect() | |
656 | - | platlol = false |
656 | + | Hurt = false |
657 | for i = 0, 1, Prop.AS*0.8 do | |
658 | - | grabbed = nil |
658 | + | RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0) |
659 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0) | |
660 | - | lolhum = nil |
660 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0) |
661 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0) | |
662 | - | attacking = false |
662 | + | HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i) |
663 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i)) | |
664 | - | platlol = nil |
664 | + | bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0) |
665 | wait() | |
666 | end | |
667 | normal() | |
668 | - | end) |
668 | + | bg:remove() |
669 | bp:remove() | |
670 | - | mouse.KeyDown:connect(function(kai) |
670 | + | |
671 | ||
672 | - | key = kai:lower() |
672 | + | function stab(mouse) |
673 | attach() | |
674 | - | if key == "q" then |
674 | + | local mouseHit = mouse |
675 | local Orig = torso.CFrame | |
676 | - | mode = "drop" |
676 | + | local bg = Add.BG(torso) |
677 | local bp = Add.BP(torso) | |
678 | - | inform("Mode: Drop",2) |
678 | + | bp.position = Orig.p |
679 | local CF = ComputePos(Orig.p, mouseHit) | |
680 | - | elseif key == "e" then |
680 | + | local CF2 = CF |
681 | bg.cframe = CF2 | |
682 | - | mode = "throw" |
682 | + | PlaySound(slash) |
683 | for i = 0, 1, Prop.AS do | |
684 | - | inform("Mode: Throw",2) |
684 | + | RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0) |
685 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0) | |
686 | - | elseif key == "f" then |
686 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i)) |
687 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i)) | |
688 | - | mode = "kill" |
688 | + | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i) |
689 | neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i)) | |
690 | - | inform("Mode: Kill",2) |
690 | + | bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0) |
691 | wait() | |
692 | end | |
693 | StartEffect(maintip) | |
694 | - | end) |
694 | + | Hurt = true |
695 | bp.position = CF * CFrame.new(0, 0, -0.6).p | |
696 | for i = 0, 1, Prop.AS*1.5 do | |
697 | RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0) | |
698 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0) | |
699 | - | function desel() |
699 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i)) |
700 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i)) | |
701 | - | repeat wait() until attacking == false |
701 | + | HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i) |
702 | neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i)) | |
703 | - | orr.Part1 = knife |
703 | + | bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0) |
704 | wait() | |
705 | - | ar.Part1 = nil |
705 | + | end |
706 | Hurt = false | |
707 | EndEffect() | |
708 | bp.position = CF.p | |
709 | for i = 0, 1, Prop.AS*1.1 do | |
710 | RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0) | |
711 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0) | |
712 | - | bin.Deselected:connect(desel) |
712 | + | RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i)) |
713 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i)) | |
714 | HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i) | |
715 | - | char.Humanoid.Died:connect(function() |
715 | + | neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i)) |
716 | bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0) | |
717 | - | pcall(function() |
717 | + | wait() |
718 | end | |
719 | - | grabweld:remove() |
719 | + | normal() |
720 | bg:remove() | |
721 | - | grabweld = nil |
721 | + | bp:remove() |
722 | end | |
723 | - | grabbed = nil |
723 | + | |
724 | function epicsmashfunc(hit) | |
725 | - | platlol = false |
725 | + | local ch = hit.Parent |
726 | local h = getHumanoid(ch) | |
727 | - | platlol = nil |
727 | + | local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head") |
728 | return h, t, head | |
729 | - | end) |
729 | + | |
730 | ||
731 | - | end) |
731 | + | function epicsmash(mouse) |
732 | if Prop.Rage >= 50 then | |
733 | attach() | |
734 | - | inform("Grab script loaded succesfully.",2) |
734 | + | local mouseHit = mouse |
735 | local Orig = torso.CFrame | |
736 | local bg = Add.BG(torso) | |
737 | local bp = Add.BP(torso) | |
738 | bp.position = Orig.p | |
739 | local CF = ComputePos(Orig.p, mouseHit) | |
740 | bg.cframe = CF | |
741 | local hu, to, head = nil, nil, nil | |
742 | local Epic = true | |
743 | local conn = Lleg.Touched:connect(function(hit) | |
744 | if Epic then | |
745 | hu, to, head = epicsmashfunc(hit) | |
746 | if hu and to and head then Epic = false end | |
747 | end | |
748 | end) | |
749 | PlaySound(slash) | |
750 | for i = 0, 1, 0.12 do | |
751 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0) | |
752 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i) | |
753 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0) | |
754 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0) | |
755 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i) | |
756 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i)) | |
757 | bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i)) | |
758 | wait() | |
759 | end | |
760 | conn:disconnect() | |
761 | if hu and to and head then | |
762 | Prop.Rage = Prop.Rage - 50 | |
763 | hu.PlatformStand = true | |
764 | local bg2 = Add.BG(to) | |
765 | bg2.P = 6000 | |
766 | bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90)) | |
767 | local bp2 = Add.BP(to) | |
768 | bp2.position = CF * CFrame.new(-1, -4, -4).p | |
769 | bp2.P = 5000 | |
770 | wait(0.1) | |
771 | for i = 0, 1, 0.045 do | |
772 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i)) | |
773 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i) | |
774 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0) | |
775 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0) | |
776 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i) | |
777 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i)) | |
778 | bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i)) | |
779 | wait() | |
780 | end | |
781 | PlaySound(slash) | |
782 | bp2:remove() | |
783 | bg2:remove() | |
784 | wait(0.2) | |
785 | StartEffect(maintip) | |
786 | for i = 0, 1, 0.1 do | |
787 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i)) | |
788 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0) | |
789 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
790 | LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
791 | HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i) | |
792 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i)) | |
793 | bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15)) | |
794 | wait() | |
795 | end | |
796 | coroutine.resume(coroutine.create(function() | |
797 | local frr = Cam.CoordinateFrame | |
798 | for i = 1, math.random(3,6) do | |
799 | wait() | |
800 | Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10) | |
801 | end | |
802 | end)) | |
803 | PlaySound(smashsound) | |
804 | EndEffect() | |
805 | local pos = head.Position | |
806 | if (pos - maintip.Position).magnitude < 2 then | |
807 | damage(hu, head, 0.3, hu.Health, hu.Health) | |
808 | head:remove() | |
809 | PlaySound(hitsound) | |
810 | for i = 1, math.random(7, 17) do | |
811 | local hmm = math.random(1,6) | |
812 | if hmm < 6 then | |
813 | local cols = {"Bright red", "Really red"} | |
814 | local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10) | |
815 | p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10) | |
816 | p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15)) | |
817 | p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25)) | |
818 | else | |
819 | local cols = {"Institutional white", "White"} | |
820 | local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10) | |
821 | p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10) | |
822 | p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15)) | |
823 | p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25)) | |
824 | end | |
825 | end | |
826 | end | |
827 | for i = 0, 1, 0.06 do | |
828 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i)) | |
829 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0) | |
830 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
831 | LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
832 | HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i) | |
833 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i)) | |
834 | bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0) | |
835 | wait() | |
836 | end | |
837 | else | |
838 | for i = 0, 1, 0.08 do | |
839 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0) | |
840 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i) | |
841 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0) | |
842 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0) | |
843 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i) | |
844 | neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i)) | |
845 | bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i)) | |
846 | wait() | |
847 | end | |
848 | bg:remove() | |
849 | bp:remove() | |
850 | normal() | |
851 | end | |
852 | normal() | |
853 | bg:remove() | |
854 | bp:remove() | |
855 | end | |
856 | end | |
857 | ||
858 | ||
859 | function shockwave(mouse) | |
860 | local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1) | |
861 | if Prop.Rage >= 80 and t then | |
862 | Prop.Rage = Prop.Rage - 80 | |
863 | attach() | |
864 | local mouseHit = mouse | |
865 | local Orig = torso.CFrame | |
866 | local bg = Add.BG(torso) | |
867 | local bp = Add.BP(torso) | |
868 | bp.position = Orig.p | |
869 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
870 | bp.P = 5000 | |
871 | local CF = ComputePos(Orig.p, mouseHit) | |
872 | bg.cframe = CF | |
873 | PlaySound(charge) | |
874 | for i = 0, 1, 0.07 do | |
875 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i) | |
876 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i) | |
877 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i) | |
878 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i) | |
879 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i) | |
880 | neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0) | |
881 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
882 | bp.position = Orig.p + Vector3.new(0, -1.9*i, 0) | |
883 | wait() | |
884 | end | |
885 | for i = 0, 1, 0.04 do | |
886 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i) | |
887 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i) | |
888 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i) | |
889 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i) | |
890 | HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i) | |
891 | neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0) | |
892 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
893 | bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0) | |
894 | wait() | |
895 | end | |
896 | bp.P = 12001 | |
897 | wait(0.1) | |
898 | StartEffect(maintip) | |
899 | PlaySound(slash) | |
900 | for i = 0, 1, 0.1 do | |
901 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i) | |
902 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0) | |
903 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i) | |
904 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i) | |
905 | HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i) | |
906 | neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i)) | |
907 | bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0) | |
908 | bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0) | |
909 | wait() | |
910 | end | |
911 | coroutine.resume(coroutine.create(function() | |
912 | local frr = Cam.CoordinateFrame | |
913 | for i = 1, math.random(10,16) do | |
914 | wait() | |
915 | Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10) | |
916 | end | |
917 | end)) | |
918 | PlaySound(smashsound) | |
919 | local pos = CF * CFrame.new(-2, -3, -3).p | |
920 | EndEffect() | |
921 | local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true) | |
922 | p.CFrame = CFrame.new(pos) | |
923 | local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true) | |
924 | p2.CFrame = CFrame.new(pos) | |
925 | local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true) | |
926 | p3.CFrame = CFrame.new(pos) | |
927 | local m3 = Instance.new("SpecialMesh",p3) | |
928 | m3.MeshType = "Sphere" | |
929 | PlaySound(boom) | |
930 | local m2 = Instance.new("CylinderMesh",p2) | |
931 | local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1) | |
932 | local tab = {} | |
933 | coroutine.resume(coroutine.create(function() | |
934 | for x = 0, 1.04, 0.04 do | |
935 | wait() | |
936 | local thing = 33*x | |
937 | m.Scale = Vector3.new(21*x, 5*x, 21*x) | |
938 | m2.Scale = Vector3.new(thing, 1, thing) | |
939 | m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93) | |
940 | p.Transparency = x | |
941 | p2.Transparency = x | |
942 | p3.Transparency = x | |
943 | for i, v in pairs(workspace:children()) do | |
944 | local h = getHumanoid(v) | |
945 | local to = v:findFirstChild("Torso") | |
946 | if h ~= nil and to ~= nil and find(tab, v) == nil then | |
947 | if (to.Position - pos).magnitude < (thing/2) then | |
948 | damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG) | |
949 | to.Velocity = CFrame.new(pos, to.Position).lookVector * 60 | |
950 | to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)) | |
951 | h.PlatformStand = true | |
952 | table.insert(tab, v) | |
953 | coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end)) | |
954 | end | |
955 | end | |
956 | end | |
957 | end | |
958 | p:remove() | |
959 | p2:remove() | |
960 | p3:remove() | |
961 | end)) | |
962 | wait(0.8) | |
963 | for i = 0, 1, Prop.AS*0.8 do | |
964 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i) | |
965 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0) | |
966 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i) | |
967 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i) | |
968 | HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i) | |
969 | neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i)) | |
970 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
971 | bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0) | |
972 | wait() | |
973 | end | |
974 | normal() | |
975 | bg:remove() | |
976 | bp:remove() | |
977 | end | |
978 | end | |
979 | ||
980 | function flipsmash(mouse) | |
981 | local Orig = torso.CFrame | |
982 | local mouseHit = mouse | |
983 | local CF = ComputePos(Orig.p, mouseHit) | |
984 | local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5) | |
985 | local ahp = (CF * CFrame.new(0, 0, -14.5)) | |
986 | local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5) | |
987 | if t and t2 and Prop.Rage >= 90 then | |
988 | Prop.Rage = Prop.Rage - 90 | |
989 | attach() | |
990 | local bg = Add.BG(torso) | |
991 | local bp = Add.BP(torso) | |
992 | bp.position = Orig.p | |
993 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
994 | bg.cframe = CF | |
995 | local cen = CF * CFrame.new(0, -1.2, -1.5-6.5) | |
996 | for i = 0, 1, 0.08 do | |
997 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i) | |
998 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i) | |
999 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i) | |
1000 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0) | |
1001 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i) | |
1002 | neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0) | |
1003 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
1004 | bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p | |
1005 | wait() | |
1006 | end | |
1007 | wait(0.15) | |
1008 | hum.PlatformStand = true | |
1009 | for i = 0, 1, 0.13 do | |
1010 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2) | |
1011 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5) | |
1012 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i) | |
1013 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0) | |
1014 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6) | |
1015 | neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0) | |
1016 | bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0) | |
1017 | bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p | |
1018 | wait() | |
1019 | end | |
1020 | PlaySound(slash) | |
1021 | for i = 0, 1, 0.13 do | |
1022 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i) | |
1023 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i) | |
1024 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0) | |
1025 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0) | |
1026 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i) | |
1027 | neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0) | |
1028 | bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0) | |
1029 | bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p | |
1030 | wait() | |
1031 | end | |
1032 | StartEffect(maintip) | |
1033 | PlaySound(slash) | |
1034 | for i = 0, 1, 0.06 do | |
1035 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0) | |
1036 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0) | |
1037 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0) | |
1038 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i) | |
1039 | HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6) | |
1040 | neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0) | |
1041 | bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0) | |
1042 | bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p | |
1043 | wait() | |
1044 | end | |
1045 | coroutine.resume(coroutine.create(function() | |
1046 | local frr = Cam.CoordinateFrame | |
1047 | for i = 1, math.random(13,20) do | |
1048 | wait() | |
1049 | Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10) | |
1050 | end | |
1051 | end)) | |
1052 | PlaySound(smashsound) | |
1053 | PlaySound(boomboom) | |
1054 | EndEffect() | |
1055 | local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z) | |
1056 | local siz = math.random(65,115)/10 | |
1057 | local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true) | |
1058 | partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0) | |
1059 | local decc = Instance.new("Decal",partie) | |
1060 | decc.Shiny = 0 | |
1061 | decc.Specular = 0 | |
1062 | decc.Texture = "http://www.roblox.com/asset/?id=49173398" | |
1063 | decc.Face = "Top" | |
1064 | local count = 0 | |
1065 | for i, v in pairs(workspace:children()) do | |
1066 | local h = getHumanoid(v) | |
1067 | local to = v:findFirstChild("Torso") | |
1068 | if h ~= nil and to ~= nil then | |
1069 | if (to.Position - poo).magnitude < 15 then | |
1070 | count = count + 1 | |
1071 | local Maxhp = h.MaxHealth | |
1072 | if Maxhp > 5000 then Maxhp = 5000 end | |
1073 | damage(h, to, 0.5, 0, Maxhp+5) | |
1074 | to.Velocity = CFrame.new(poo, to.Position).lookVector * 30 | |
1075 | to.Velocity = to.Velocity + Vector3.new(0, 60, 0) | |
1076 | to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1077 | h.PlatformStand = true | |
1078 | coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end)) | |
1079 | if count >= 2 then break end | |
1080 | end | |
1081 | end | |
1082 | end | |
1083 | coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end)) | |
1084 | wait(0.6) | |
1085 | for i = 0, 1, 0.06 do | |
1086 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0) | |
1087 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0) | |
1088 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0) | |
1089 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i) | |
1090 | HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i) | |
1091 | neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0) | |
1092 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
1093 | bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p | |
1094 | wait() | |
1095 | end | |
1096 | hum.PlatformStand = false | |
1097 | normal() | |
1098 | bg:remove() | |
1099 | bp:remove() | |
1100 | end | |
1101 | end | |
1102 | ||
1103 | function spin(mouse) | |
1104 | attach() | |
1105 | local mouseHit = mouse | |
1106 | local Orig = torso.CFrame | |
1107 | local CF = ComputePos(Orig.p, mouseHit) | |
1108 | local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5) | |
1109 | if t then | |
1110 | local bg = Add.BG(torso) | |
1111 | local bp = Add.BP(torso) | |
1112 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1113 | bp.position = Orig.p | |
1114 | bg.cframe = CF | |
1115 | PlaySound(slash) | |
1116 | for i = 0, 1, 0.11 do | |
1117 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0) | |
1118 | RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i)) | |
1119 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0) | |
1120 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i) | |
1121 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0) | |
1122 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) | |
1123 | neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i)) | |
1124 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
1125 | wait() | |
1126 | end | |
1127 | local posg = CF * CFrame.new(0, -0.6, -4) | |
1128 | PlaySound(hitsound, 0.9) | |
1129 | for i = 0, 1, 0.13 do | |
1130 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i) | |
1131 | RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i)) | |
1132 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0) | |
1133 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i) | |
1134 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0) | |
1135 | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i) | |
1136 | neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i)) | |
1137 | bg.cframe = CF * CFrame.Angles(0, 0, 0) | |
1138 | bp.position = CF * CFrame.new(0, 1*i, -2*i).p | |
1139 | wait() | |
1140 | end | |
1141 | hum.PlatformStand = true | |
1142 | bg.Parent = handle | |
1143 | bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0) | |
1144 | bp.Parent = handle | |
1145 | bp.position = posg.p | |
1146 | StartEffect(Lleg) | |
1147 | Leghurt = true | |
1148 | PlaySound(slash) | |
1149 | for i = 0, 1, 0.09 do | |
1150 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i) | |
1151 | RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0) | |
1152 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0) | |
1153 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0) | |
1154 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0) | |
1155 | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i) | |
1156 | neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0) | |
1157 | bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0) | |
1158 | wait() | |
1159 | end | |
1160 | for i = 0, 1, 0.055 do | |
1161 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0) | |
1162 | RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0) | |
1163 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0) | |
1164 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0) | |
1165 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0) | |
1166 | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1) | |
1167 | neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0) | |
1168 | bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0) | |
1169 | wait() | |
1170 | end | |
1171 | EndEffect() | |
1172 | Leghurt = false | |
1173 | for i = 0, 1, 0.12 do | |
1174 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i) | |
1175 | RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0) | |
1176 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0) | |
1177 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0) | |
1178 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0) | |
1179 | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1) | |
1180 | neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0) | |
1181 | bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0) | |
1182 | wait() | |
1183 | end | |
1184 | bg.Parent = torso | |
1185 | bp.Parent = torso | |
1186 | bg.cframe = CF | |
1187 | for i = 0, 1, 0.14 do | |
1188 | RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i) | |
1189 | RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0) | |
1190 | LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0) | |
1191 | RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) | |
1192 | LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) | |
1193 | HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i) | |
1194 | neck.C0 = necko * CFrame.Angles(0, 0, 0) | |
1195 | bp.position = CF * CFrame.new(0, 0, -2+1*i).p | |
1196 | bg.cframe = CF | |
1197 | wait() | |
1198 | end | |
1199 | hum.PlatformStand = false | |
1200 | normal() | |
1201 | bg:remove() | |
1202 | bp:remove() | |
1203 | end | |
1204 | end | |
1205 | ||
1206 | function rest() | |
1207 | local Orig = torso.CFrame | |
1208 | local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p) | |
1209 | local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5) | |
1210 | if t then | |
1211 | attach() | |
1212 | local bg = Add.BG(torso) | |
1213 | local bp = Add.BP(torso) | |
1214 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1215 | bp.position = CF.p | |
1216 | bg.cframe = CF | |
1217 | local cen = CF * CFrame.new(0, -2.5, 0) | |
1218 | RestingAnim = true | |
1219 | hum.PlatformStand = true | |
1220 | local standup = function() | |
1221 | Resting = false | |
1222 | bp.Parent = torso | |
1223 | cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5) | |
1224 | for i = 1, 0, -0.12 do | |
1225 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i)) | |
1226 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i) | |
1227 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4) | |
1228 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4) | |
1229 | neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0) | |
1230 | HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i) | |
1231 | bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0) | |
1232 | bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p | |
1233 | wait() | |
1234 | end | |
1235 | for i = 1, 0, -0.17 do | |
1236 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0) | |
1237 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i) | |
1238 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i) | |
1239 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i) | |
1240 | neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0) | |
1241 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i) | |
1242 | bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0) | |
1243 | bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p | |
1244 | wait() | |
1245 | end | |
1246 | hum.PlatformStand = false | |
1247 | bg:remove() | |
1248 | bp:remove() | |
1249 | normal() | |
1250 | Able = true | |
1251 | RestingAnim = false | |
1252 | end | |
1253 | local connec = hum.Changed:connect(function() | |
1254 | if hum.PlatformStand == false then | |
1255 | coroutine.resume(coroutine.create(function() | |
1256 | standup() | |
1257 | end)) | |
1258 | standup = nil | |
1259 | connec:disconnect() | |
1260 | end | |
1261 | end) | |
1262 | local lasthp = hum.Health | |
1263 | local conn = hum.HealthChanged:connect(function(hp) | |
1264 | if lasthp - hp > 0.8 then | |
1265 | hum.PlatformStand = false | |
1266 | conn:disconnect() | |
1267 | end | |
1268 | lasthp = hp | |
1269 | end) | |
1270 | coroutine.resume(coroutine.create(function() | |
1271 | repeat wait() until Resting | |
1272 | while Resting do | |
1273 | wait() | |
1274 | if torso.Velocity.magnitude > 4 then | |
1275 | hum.PlatformStand = false | |
1276 | break | |
1277 | end | |
1278 | end | |
1279 | end)) | |
1280 | for i = 0, 1, 0.1 do | |
1281 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0) | |
1282 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i) | |
1283 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i) | |
1284 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i) | |
1285 | neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0) | |
1286 | HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i) | |
1287 | bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0) | |
1288 | bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p | |
1289 | wait() | |
1290 | end | |
1291 | for i = 0, 1, 0.07 do | |
1292 | RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i)) | |
1293 | LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i) | |
1294 | RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4) | |
1295 | LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4) | |
1296 | neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0) | |
1297 | HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i) | |
1298 | bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0) | |
1299 | bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p | |
1300 | wait() | |
1301 | end | |
1302 | Resting = true | |
1303 | coroutine.resume(coroutine.create(function() | |
1304 | wait(0.4) | |
1305 | bp.Parent = nil | |
1306 | end)) | |
1307 | coroutine.resume(coroutine.create(function() | |
1308 | while Resting and selected do | |
1309 | wait(math.random(350,800)/1000) | |
1310 | hum.Health = hum.Health + math.random(1,2) | |
1311 | Prop.Rage = Prop.Rage + 1 | |
1312 | end | |
1313 | hum.PlatformStand = false | |
1314 | end)) | |
1315 | end | |
1316 | end | |
1317 | ||
1318 | function select(mouse) | |
1319 | mouse.Icon = MouseIc | |
1320 | selectanim() | |
1321 | selected = true | |
1322 | mouse.Button1Down:connect(function() | |
1323 | if Able and RestingAnim == false and hum.Sit == false then | |
1324 | Able = false | |
1325 | swing(mouse.Hit.p) | |
1326 | Able = true | |
1327 | end | |
1328 | end) | |
1329 | mouse.Button1Down:connect(function() | |
1330 | mouse.Icon = MouseDo | |
1331 | mouse.Button1Up:wait() | |
1332 | mouse.Icon = MouseIc | |
1333 | end) | |
1334 | mouse.KeyDown:connect(function(key) | |
1335 | key = key:lower() | |
1336 | if Able and RestingAnim == false and hum.Sit == false then | |
1337 | if key == "q" then | |
1338 | Able = false | |
1339 | smash(mouse.Hit.p) | |
1340 | Able = true | |
1341 | elseif key == "e" then | |
1342 | Able = false | |
1343 | swing(mouse.Hit.p) | |
1344 | Able = true | |
1345 | elseif key == "r" then | |
1346 | Able = false | |
1347 | stab(mouse.Hit.p) | |
1348 | Able = true | |
1349 | elseif key == "f" then | |
1350 | Able = false | |
1351 | epicsmash(mouse.Hit.p) | |
1352 | Able = true | |
1353 | elseif key == "z" then | |
1354 | Able = false | |
1355 | shockwave(mouse.Hit.p) | |
1356 | Able = true | |
1357 | elseif key == "x" then | |
1358 | Able = false | |
1359 | flipsmash(mouse.Hit.p) | |
1360 | Able = true | |
1361 | elseif key == "t" then | |
1362 | Able = false | |
1363 | spin(mouse.Hit.p) | |
1364 | Able = true | |
1365 | end | |
1366 | end | |
1367 | if Able then | |
1368 | if key == "g" and AbleG then | |
1369 | AbleG = false | |
1370 | if Resting == true then | |
1371 | Resting = false | |
1372 | else | |
1373 | rest() | |
1374 | end | |
1375 | wait(0.8) | |
1376 | AbleG = true | |
1377 | end | |
1378 | end | |
1379 | end) | |
1380 | end | |
1381 | ||
1382 | function deselect(mouse) | |
1383 | selected = false | |
1384 | deselanim() | |
1385 | end | |
1386 | ||
1387 | bin.Selected:connect(select) | |
1388 | bin.Deselected:connect(deselect) |