SHOW:
|
|
- or go back to the newest paste.
1 | -- Objects | |
2 | ||
3 | local ScreenGui = Instance.new("ScreenGui") | |
4 | local Body = Instance.new("Frame") | |
5 | local TextButton = Instance.new("TextButton") | |
6 | local TextButton_2 = Instance.new("TextButton") | |
7 | local TextLabel = Instance.new("TextLabel") | |
8 | local TextButton_3 = Instance.new("TextButton") | |
9 | local TextButton_4 = Instance.new("TextButton") | |
10 | ||
11 | -- Properties | |
12 | ||
13 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
14 | ||
15 | Body.Name = "Body" | |
16 | Body.Parent = ScreenGui | |
17 | Body.BackgroundColor3 = Color3.new(0, 0, 1) | |
18 | Body.Position = UDim2.new(-0.0111642741, 0, 0.169977918, 0) | |
19 | Body.Size = UDim2.new(0, 234, 0, 210) | |
20 | ||
21 | - | TextButton.Parent = Body |
21 | + | |
22 | - | TextButton.BackgroundColor3 = Color3.new(0.333333, 1, 0) |
22 | + | |
23 | - | TextButton.Position = UDim2.new(0.02991453, 0, 0.163461536, 0) |
23 | + | |
24 | - | TextButton.Size = UDim2.new(0, 83, 0, 50) |
24 | + | |
25 | - | TextButton.Font = Enum.Font.SourceSans |
25 | + | |
26 | - | TextButton.Text = "Ban Hammer v1" |
26 | + | |
27 | - | TextButton.TextColor3 = Color3.new(0, 0, 0) |
27 | + | |
28 | - | TextButton.TextSize = 14 |
28 | + | |
29 | - | Ban Hammer v1.MouseButton1Down:connect(function() |
29 | + | |
30 | TextButton_2.TextSize = 14 | |
31 | - | --By quuisiYT(quu#9149) |
31 | + | |
32 | - | Player=game:GetService("Players").LocalPlayer |
32 | + | |
33 | - | Character=Player.Character |
33 | + | |
34 | - | char = Character |
34 | + | |
35 | - | local scream = Instance.new("Sound",char.Torso) |
35 | + | |
36 | - | scream.SoundId = "rbxassetid://901030512" |
36 | + | |
37 | - | scream.Volume = 100 |
37 | + | |
38 | - | local omg = Instance.new("Sound",char.Torso) |
38 | + | |
39 | - | omg.SoundId = "rbxassetid://1090126885" |
39 | + | |
40 | - | omg.Volume = 1000 |
40 | + | |
41 | - | local ban2 = Instance.new("Sound",char.Torso) |
41 | + | |
42 | - | ban2.SoundId = "rbxassetid://135925117" |
42 | + | |
43 | - | ban2.Volume = 100 |
43 | + | |
44 | PlayerGui = Player.PlayerGui | |
45 | - | ban.SoundId = "rbxassetid://948494432" |
45 | + | |
46 | - | ban.Volume = 100 |
46 | + | |
47 | Character = Player.Character | |
48 | Humanoid = Character.Humanoid | |
49 | Mouse = Player:GetMouse() | |
50 | RootPart = Character["HumanoidRootPart"] | |
51 | Torso = Character["Torso"] | |
52 | Head = Character["Head"] | |
53 | RightArm = Character["Right Arm"] | |
54 | LeftArm = Character["Left Arm"] | |
55 | - | local banw = Instance.new("Weld",banh) |
55 | + | |
56 | - | banw.Part0 = banh |
56 | + | |
57 | - | banw.Part1 = char["Right Arm"] |
57 | + | |
58 | - | banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978) |
58 | + | |
59 | - | PlayerGui=Player.PlayerGui |
59 | + | |
60 | - | Backpack=Player.Backpack |
60 | + | |
61 | - | Torso=Character.Torso |
61 | + | |
62 | - | Head=Character.Head |
62 | + | |
63 | - | Humanoid=Character.Humanoid |
63 | + | |
64 | - | m=Instance.new('Model',Character) |
64 | + | |
65 | - | LeftArm=Character["Left Arm"] |
65 | + | |
66 | - | LeftLeg=Character["Left Leg"] |
66 | + | |
67 | - | RightArm=Character["Right Arm"] |
67 | + | |
68 | - | RightLeg=Character["Right Leg"] |
68 | + | |
69 | - | LS=Torso["Left Shoulder"] |
69 | + | |
70 | - | LH=Torso["Left Hip"] |
70 | + | |
71 | - | RS=Torso["Right Shoulder"] |
71 | + | |
72 | - | RH=Torso["Right Hip"] |
72 | + | |
73 | - | Face = Head.face |
73 | + | |
74 | - | Neck=Torso.Neck |
74 | + | |
75 | - | it=Instance.new |
75 | + | |
76 | - | attacktype=1 |
76 | + | |
77 | - | vt=Vector3.new |
77 | + | |
78 | - | cf=CFrame.new |
78 | + | |
79 | - | euler=CFrame.fromEulerAnglesXYZ |
79 | + | |
80 | - | angles=CFrame.Angles |
80 | + | |
81 | - | cloaked=false |
81 | + | |
82 | - | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
82 | + | |
83 | - | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
83 | + | |
84 | - | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
84 | + | |
85 | - | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) |
85 | + | |
86 | - | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
86 | + | |
87 | - | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) |
87 | + | |
88 | - | RootPart=Character.HumanoidRootPart |
88 | + | |
89 | - | RootJoint=RootPart.RootJoint |
89 | + | |
90 | - | RootCF=euler(-1.57,0,3.14) |
90 | + | |
91 | - | attack = false |
91 | + | |
92 | - | attackdebounce = false |
92 | + | |
93 | - | deb=false |
93 | + | |
94 | - | equipped=true |
94 | + | |
95 | - | hand=false |
95 | + | |
96 | - | MMouse=nil |
96 | + | |
97 | - | combo=0 |
97 | + | |
98 | - | mana=0 |
98 | + | |
99 | - | trispeed=1 |
99 | + | |
100 | - | pathtrans=.7 |
100 | + | |
101 | - | attackmode='none' |
101 | + | |
102 | - | local idle=0 |
102 | + | |
103 | - | local Anim="Idle" |
103 | + | |
104 | - | local Effects={} |
104 | + | |
105 | - | local gun=false |
105 | + | |
106 | - | local shoot=false |
106 | + | |
107 | - | player=nil |
107 | + | |
108 | - | cloak=false |
108 | + | |
109 | - | lightcolor='Bright blue' |
109 | + | |
110 | NEWPART.Locked = true | |
111 | - | local Color1=Torso.BrickColor |
111 | + | |
112 | if ANCHOR == false then | |
113 | NEWPART.Anchored = false | |
114 | - | mouse=Player:GetMouse() |
114 | + | |
115 | - | --save shoulders |
115 | + | |
116 | - | RSH, LSH=nil, nil |
116 | + | |
117 | - | --welds |
117 | + | |
118 | - | RW, LW=Instance.new("Weld"), Instance.new("Weld") |
118 | + | |
119 | - | RW.Name="Right Shoulder" LW.Name="Left Shoulder" |
119 | + | |
120 | - | LH=Torso["Left Hip"] |
120 | + | |
121 | - | RH=Torso["Right Hip"] |
121 | + | |
122 | - | TorsoColor=Torso.BrickColor |
122 | + | |
123 | - | function NoOutline(Part) |
123 | + | |
124 | - | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
124 | + | |
125 | --//=================================\\ | |
126 | --|| CUSTOMIZATION | |
127 | --\\=================================// | |
128 | ||
129 | - | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) |
129 | + | |
130 | - | local fp=it("Part") |
130 | + | |
131 | - | fp.formFactor=formfactor |
131 | + | |
132 | - | fp.Parent=parent |
132 | + | |
133 | - | fp.Reflectance=reflectance |
133 | + | |
134 | - | fp.Transparency=transparency |
134 | + | |
135 | - | fp.CanCollide=false |
135 | + | |
136 | - | fp.Locked=true |
136 | + | |
137 | - | fp.BrickColor=brickcolor |
137 | + | |
138 | - | fp.Name=name |
138 | + | |
139 | - | fp.Size=size |
139 | + | |
140 | - | fp.Position=Torso.Position |
140 | + | |
141 | - | NoOutline(fp) |
141 | + | |
142 | - | fp.Material="SmoothPlastic" |
142 | + | |
143 | - | fp:BreakJoints() |
143 | + | |
144 | - | return fp |
144 | + | |
145 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
146 | weldd.Parent = a | |
147 | return weldd | |
148 | - | local mesh=it(Mesh) |
148 | + | |
149 | - | mesh.Parent=part |
149 | + | |
150 | - | if Mesh=="SpecialMesh" then |
150 | + | |
151 | - | mesh.MeshType=meshtype |
151 | + | |
152 | - | if meshid~="nil" then |
152 | + | |
153 | - | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid |
153 | + | |
154 | acs.Size = Vector3.new(0,0,0) | |
155 | acs.CFrame = attachmentpart.CFrame | |
156 | - | mesh.Offset=offset |
156 | + | |
157 | - | mesh.Scale=scale |
157 | + | |
158 | - | return mesh |
158 | + | |
159 | meshs.MeshId = mesh | |
160 | meshs.TextureId = texture | |
161 | - | function weld(parent,part0,part1,c0) |
161 | + | |
162 | - | local weld=it("Weld") |
162 | + | |
163 | - | weld.Parent=parent |
163 | + | |
164 | - | weld.Part0=part0 |
164 | + | |
165 | - | weld.Part1=part1 |
165 | + | |
166 | - | weld.C0=c0 |
166 | + | |
167 | - | return weld |
167 | + | |
168 | if TYPE == "Gem" then | |
169 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
170 | - | local Color1=Torso.BrickColor |
170 | + | |
171 | acs.CanCollide = false | |
172 | acs.CFrame = PART.CFrame | |
173 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
174 | weldBetween(PART,acs) | |
175 | elseif TYPE == "Skull" then | |
176 | - | Player=game:GetService('Players').LocalPlayer |
176 | + | |
177 | - | Character=Player.Character |
177 | + | |
178 | - | Mouse=Player:GetMouse() |
178 | + | |
179 | - | m=Instance.new('Model',Character) |
179 | + | |
180 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
181 | weldBetween(PART,acs) | |
182 | - | local function weldBetween(a, b) |
182 | + | |
183 | - | local weldd = Instance.new("ManualWeld") |
183 | + | |
184 | - | weldd.Part0 = a |
184 | + | |
185 | - | weldd.Part1 = b |
185 | + | |
186 | - | weldd.C0 = CFrame.new() |
186 | + | |
187 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
187 | + | |
188 | - | weldd.Parent = a |
188 | + | |
189 | - | return weldd |
189 | + | |
190 | end | |
191 | - | |
191 | + | |
192 | - | it=Instance.new |
192 | + | |
193 | - | |
193 | + | |
194 | - | function nooutline(part) |
194 | + | |
195 | - | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 |
195 | + | |
196 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
197 | - | |
197 | + | |
198 | - | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
198 | + | |
199 | - | local fp=it("Part") |
199 | + | |
200 | - | fp.formFactor=formfactor |
200 | + | |
201 | - | fp.Parent=parent |
201 | + | |
202 | - | fp.Reflectance=reflectance |
202 | + | |
203 | - | fp.Transparency=transparency |
203 | + | |
204 | - | fp.CanCollide=false |
204 | + | |
205 | - | fp.Locked=true |
205 | + | |
206 | - | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
206 | + | |
207 | - | fp.Name=name |
207 | + | |
208 | - | fp.Size=size |
208 | + | |
209 | - | fp.Position=Character.Torso.Position |
209 | + | |
210 | - | nooutline(fp) |
210 | + | |
211 | - | fp.Material=material |
211 | + | |
212 | - | fp:BreakJoints() |
212 | + | |
213 | - | return fp |
213 | + | |
214 | local VALUE1 = false | |
215 | - | |
215 | + | |
216 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
216 | + | |
217 | - | local mesh=it(Mesh) |
217 | + | |
218 | - | mesh.Parent=part |
218 | + | |
219 | - | if Mesh=="SpecialMesh" then |
219 | + | |
220 | - | mesh.MeshType=meshtype |
220 | + | |
221 | - | mesh.MeshId=meshid |
221 | + | |
222 | WEAPONGUI.Name = "Weapon GUI" | |
223 | - | mesh.Offset=offset |
223 | + | |
224 | - | mesh.Scale=scale |
224 | + | |
225 | - | return mesh |
225 | + | |
226 | Delete.Name = "Banlist" | |
227 | - | |
227 | + | |
228 | - | function weld(parent,part0,part1,c0,c1) |
228 | + | |
229 | - | local weld=it("Weld") |
229 | + | |
230 | - | weld.Parent=parent |
230 | + | |
231 | - | weld.Part0=part0 |
231 | + | |
232 | - | weld.Part1=part1 |
232 | + | |
233 | - | weld.C0=c0 |
233 | + | |
234 | - | weld.C1=c1 |
234 | + | |
235 | - | return weld |
235 | + | |
236 | ||
237 | local SKILLTEXTCOLOR = C3(0,0,0) | |
238 | ||
239 | --//=================================\\ | |
240 | --\\=================================// | |
241 | ||
242 | ||
243 | --//=================================\\ | |
244 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
245 | --\\=================================// | |
246 | - | -------------------------------- |
246 | + | |
247 | - | local p = game.Players.LocalPlayer |
247 | + | |
248 | - | local char = p.Character |
248 | + | |
249 | - | local mouse = p:GetMouse() |
249 | + | |
250 | - | local larm = char["Left Arm"] |
250 | + | |
251 | - | local rarm = char["Right Arm"] |
251 | + | |
252 | - | local lleg = char["Left Leg"] |
252 | + | |
253 | - | local rleg = char["Right Leg"] |
253 | + | |
254 | allowframeloss = false | |
255 | - | local torso = char.Torso |
255 | + | |
256 | lastframe = tick() | |
257 | - | local cam = game.Workspace.CurrentCamera |
257 | + | |
258 | ||
259 | - | local deb = false |
259 | + | |
260 | - | local shot = 0 |
260 | + | |
261 | - | local debris=game:service"Debris" |
261 | + | |
262 | - | local l = game:GetService("Lighting") |
262 | + | |
263 | - | local rs = game:GetService("RunService").RenderStepped |
263 | + | |
264 | - | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} |
264 | + | |
265 | - | math.randomseed(os.time()) |
265 | + | |
266 | - | for i,v in pairs(char:children()) do |
266 | + | |
267 | - | if v:IsA("Hat") then |
267 | + | |
268 | - | v:Destroy() |
268 | + | |
269 | lastframe = tick() | |
270 | end | |
271 | - | for i,v in pairs (hed:GetChildren()) do |
271 | + | |
272 | - | if v:IsA("Sound") then |
272 | + | |
273 | - | v:Destroy() |
273 | + | |
274 | tf = tf - frame * math.floor(tf / frame) | |
275 | end | |
276 | - | ---------------------------------------------------- |
276 | + | |
277 | - | z = Instance.new("Sound", torso) |
277 | + | |
278 | - | z.SoundId = "rbxassetid://606241996" -- Put Music ID Here. |
278 | + | |
279 | - | z.Looped = true |
279 | + | |
280 | - | z.Volume = 1 |
280 | + | |
281 | - | wait(.1) |
281 | + | |
282 | - | z:Play() |
282 | + | |
283 | - | ----------------------------------------------------- |
283 | + | |
284 | - | Debounces = { |
284 | + | |
285 | - | CanAttack = true; |
285 | + | |
286 | - | NoIdl = false; |
286 | + | |
287 | - | Slashing = false; |
287 | + | |
288 | - | Slashed = false; |
288 | + | |
289 | - | RPunch = false; |
289 | + | |
290 | - | RPunched = false; |
290 | + | |
291 | - | LPunch = false; |
291 | + | |
292 | - | LPunched = false; |
292 | + | |
293 | ||
294 | - | local Touche = {char.Name, } |
294 | + | |
295 | - | ---------------------------------------------------- |
295 | + | |
296 | - | ---------------------------------------------------- |
296 | + | |
297 | - | ---------------------------------------------------- |
297 | + | |
298 | - | local LocalPlayer = game:GetService("Players").LocalPlayer |
298 | + | |
299 | - | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() |
299 | + | |
300 | ||
301 | function NegativeAngle(NUMBER) | |
302 | - | local LocalPlayer = game:GetService("Players").LocalPlayer |
302 | + | |
303 | - | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() |
303 | + | |
304 | end | |
305 | - | Character.Head.Transparency = 0 |
305 | + | |
306 | end | |
307 | - | local Camisa = Instance.new("Part", Character) |
307 | + | |
308 | - | Camisa.Name = "Camisa" |
308 | + | |
309 | if NUMBER == 0 or NUMBER == nil then | |
310 | - | Camisa.CanCollide = false |
310 | + | |
311 | - | Camisa.BrickColor = BrickColor.new("Institutional white") |
311 | + | |
312 | - | Camisa.Transparency = 1 |
312 | + | |
313 | - | Camisa.Material = "Plastic" |
313 | + | |
314 | - | Camisa.Size = Vector3.new(1.5, 1.5, 1) |
314 | + | |
315 | end | |
316 | - | local Weld = Instance.new("Weld", Camisa) |
316 | + | |
317 | - | Weld.Part0 = Character.Torso |
317 | + | |
318 | - | Weld.Part1 = Camisa |
318 | + | |
319 | - | Weld.C1 = CFrame.new(0, 0, 0) |
319 | + | |
320 | - | ---------------------------------------- |
320 | + | |
321 | - | local p = game.Players.LocalPlayer |
321 | + | |
322 | - | local char = p.Character |
322 | + | |
323 | - | local mouse = p:GetMouse() |
323 | + | |
324 | - | local larm = char["Left Arm"] |
324 | + | |
325 | - | local rarm = char["Right Arm"] |
325 | + | |
326 | - | local lleg = char["Left Leg"] |
326 | + | |
327 | - | local rleg = char["Right Leg"] |
327 | + | |
328 | i = 1 | |
329 | - | local torso = char.Torso |
329 | + | |
330 | if m22 > (i == 0 and m00 or m11) then | |
331 | - | local cam = game.Workspace.CurrentCamera |
331 | + | |
332 | end | |
333 | - | local rj = root.RootJoint |
333 | + | |
334 | - | local deb = false |
334 | + | |
335 | - | local shot = 0 |
335 | + | |
336 | - | local stanceToggle = "Idle1" |
336 | + | |
337 | - | local l = game:GetService("Lighting") |
337 | + | |
338 | - | local rs = game:GetService("RunService").RenderStepped |
338 | + | |
339 | - | local hb = game:GetService("RunService").Heartbeat |
339 | + | |
340 | - | local Stepped = game:GetService("RunService").Stepped |
340 | + | |
341 | - | math.randomseed(os.time()) |
341 | + | |
342 | - | hum.JumpPower = 100 |
342 | + | |
343 | - | ---------------------------------------------------- |
343 | + | |
344 | - | fat = Instance.new("BindableEvent",script) |
344 | + | |
345 | - | fat.Name = "Heartbeat" |
345 | + | |
346 | end | |
347 | ||
348 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
349 | - | frame = 1/30 |
349 | + | |
350 | local wx, wy, wz = w * xs, w * ys, w * zs | |
351 | - | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. |
351 | + | |
352 | - | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. |
352 | + | |
353 | local xz = x * zs | |
354 | - | script.Heartbeat:Fire() --ayy lmao |
354 | + | |
355 | local yz = y * zs | |
356 | - | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp |
356 | + | |
357 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
358 | end | |
359 | ||
360 | function QuaternionSlerp(a, b, t) | |
361 | - | lastframe=tick() |
361 | + | |
362 | local startInterp, finishInterp; | |
363 | - | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) |
363 | + | |
364 | - | for i=1, math.floor(tf/frame) do |
364 | + | |
365 | local theta = ACOS(cosTheta) | |
366 | local invSinTheta = 1 / SIN(theta) | |
367 | - | lastframe=tick() |
367 | + | |
368 | finishInterp = SIN(t * theta) * invSinTheta | |
369 | else | |
370 | startInterp = 1 - t | |
371 | finishInterp = t | |
372 | - | tf = tf - frame * math.floor(tf/frame) |
372 | + | |
373 | else | |
374 | if (1 + cosTheta) > 0.0001 then | |
375 | local theta = ACOS(-cosTheta) | |
376 | - | ---------------------------------------------------- |
376 | + | |
377 | - | for i,v in pairs(char:children()) do |
377 | + | |
378 | - | if v:IsA("Hat") then |
378 | + | |
379 | - | v:Destroy() |
379 | + | |
380 | startInterp = t - 1 | |
381 | finishInterp = t | |
382 | - | for i,v in pairs (hed:GetChildren()) do |
382 | + | |
383 | - | if v:IsA("Sound") then |
383 | + | |
384 | - | v:Destroy() |
384 | + | |
385 | end | |
386 | ||
387 | - | ---------------------------------------------------- |
387 | + | |
388 | - | Debounces = { |
388 | + | |
389 | - | CanAttack = true; |
389 | + | |
390 | - | CanJoke = true; |
390 | + | |
391 | - | NoIdl = false; |
391 | + | |
392 | - | Slashing = false; |
392 | + | |
393 | - | Slashed = false; |
393 | + | |
394 | - | ks = false; |
394 | + | |
395 | ||
396 | - | ---------------------------------------------------- |
396 | + | |
397 | - | function weld5(part0, part1, c0, c1) |
397 | + | |
398 | - | weeld=Instance.new("Weld", part0) |
398 | + | |
399 | - | weeld.Part0=part0 |
399 | + | |
400 | - | weeld.Part1=part1 |
400 | + | |
401 | - | weeld.C0=c0 |
401 | + | |
402 | - | weeld.C1=c1 |
402 | + | |
403 | - | return weeld |
403 | + | |
404 | frame.Name = NAME | |
405 | - | ---------------------------------------------------- |
405 | + | |
406 | - | function NewPart(prnt,siz,cf,trans,anc,mat,col) |
406 | + | |
407 | - | local prt=Instance.new("Part") |
407 | + | |
408 | - | prt.Parent=prnt |
408 | + | |
409 | - | prt.Name="Part" |
409 | + | |
410 | - | prt.Size=siz |
410 | + | |
411 | - | prt.CanCollide=false |
411 | + | |
412 | - | prt.Anchored=anc |
412 | + | |
413 | - | prt.Locked=true |
413 | + | |
414 | - | prt.Transparency = trans |
414 | + | |
415 | - | prt.TopSurface=10 |
415 | + | |
416 | - | prt.BottomSurface=10 |
416 | + | |
417 | - | prt.FrontSurface=10 |
417 | + | |
418 | - | prt.BackSurface=10 |
418 | + | |
419 | - | prt.LeftSurface=10 |
419 | + | |
420 | - | prt.RightSurface=10 |
420 | + | |
421 | - | prt:BreakJoints() |
421 | + | |
422 | - | prt.CFrame=cf or CFrame.new(30,10,30) |
422 | + | |
423 | - | prt.Material=mat |
423 | + | |
424 | - | prt.BrickColor=BrickColor.new(col) |
424 | + | |
425 | - | m=Instance.new("SpecialMesh",prt) |
425 | + | |
426 | - | m.MeshType=6 |
426 | + | |
427 | - | return prt |
427 | + | |
428 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
429 | - | ---------------------------------------------------- |
429 | + | |
430 | - | function lerp(a, b, t) -- Linear interpolation |
430 | + | |
431 | - | return a + (b - a)*t |
431 | + | |
432 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
433 | local NEWWELD = IT(TYPE) | |
434 | - | function slerp(a, b, t) --Spherical interpolation |
434 | + | |
435 | - | dot = a:Dot(b) |
435 | + | |
436 | - | if dot > 0.99999 or dot < -0.99999 then |
436 | + | |
437 | - | return t <= 0.5 and a or b |
437 | + | |
438 | NEWWELD.Parent = PARENT | |
439 | - | r = math.acos(dot) |
439 | + | |
440 | - | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) |
440 | + | |
441 | ||
442 | local SOUND = IT("Sound",nil) | |
443 | ||
444 | - | function matrixInterpolate(a, b, t) |
444 | + | |
445 | - | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() |
445 | + | |
446 | - | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() |
446 | + | |
447 | - | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position |
447 | + | |
448 | - | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right |
448 | + | |
449 | - | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up |
449 | + | |
450 | - | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back |
450 | + | |
451 | - | local t = v1:Dot(v2) |
451 | + | |
452 | - | if not (t < 0 or t == 0 or t > 0) then -- Failsafe |
452 | + | |
453 | - | return CFrame.new() |
453 | + | |
454 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
455 | - | return CFrame.new( |
455 | + | |
456 | - | v0.x, v0.y, v0.z, |
456 | + | |
457 | - | v1.x, v1.y, v1.z, |
457 | + | |
458 | - | v2.x, v2.y, v2.z, |
458 | + | |
459 | - | v3.x, v3.y, v3.z) |
459 | + | |
460 | local right = top:Cross(back) | |
461 | - | ---------------------------------------------------- |
461 | + | |
462 | - | function genWeld(a,b) |
462 | + | |
463 | - | local w = Instance.new("Weld",a) |
463 | + | |
464 | - | w.Part0 = a |
464 | + | |
465 | - | w.Part1 = b |
465 | + | |
466 | - | return w |
466 | + | |
467 | mesh.MeshType = "FileMesh" | |
468 | - | function weld(a, b) |
468 | + | |
469 | - | local weld = Instance.new("Weld") |
469 | + | |
470 | - | weld.Name = "W" |
470 | + | |
471 | - | weld.Part0 = a |
471 | + | |
472 | - | weld.Part1 = b |
472 | + | |
473 | - | weld.C0 = a.CFrame:inverse() * b.CFrame |
473 | + | |
474 | - | weld.Parent = a |
474 | + | |
475 | - | return weld; |
475 | + | |
476 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
477 | - | ---------------------------------------------------- |
477 | + | |
478 | - | function Lerp(c1,c2,al) |
478 | + | |
479 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} |
479 | + | |
480 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} |
480 | + | |
481 | - | for i,v in pairs(com1) do |
481 | + | |
482 | - | com1[i] = v+(com2[i]-v)*al |
482 | + | |
483 | end | |
484 | - | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) |
484 | + | |
485 | end)) | |
486 | - | ---------------------------------------------------- |
486 | + | |
487 | - | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) |
487 | + | |
488 | - | local wld = Instance.new("Weld", wp1) |
488 | + | |
489 | - | wld.Part0 = wp0 |
489 | + | |
490 | - | wld.Part1 = wp1 |
490 | + | |
491 | - | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) |
491 | + | |
492 | mesh.Scale = SIZE | |
493 | - | ---------------------------------------------------- |
493 | + | |
494 | - | newWeld(torso, larm, -1.5, 0.5, 0) |
494 | + | |
495 | - | larm.Weld.C1 = CFrame.new(0, 0.5, 0) |
495 | + | |
496 | - | newWeld(torso, rarm, 1.5, 0.5, 0) |
496 | + | |
497 | - | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) |
497 | + | |
498 | - | newWeld(torso, hed, 0, 1.5, 0) |
498 | + | |
499 | - | newWeld(torso, lleg, -0.5, -1, 0) |
499 | + | |
500 | - | lleg.Weld.C1 = CFrame.new(0, 1, 0) |
500 | + | |
501 | - | newWeld(torso, rleg, 0.5, -1, 0) |
501 | + | |
502 | - | rleg.Weld.C1 = CFrame.new(0, 1, 0) |
502 | + | |
503 | - | newWeld(root, torso, 0, -1, 0) |
503 | + | |
504 | - | torso.Weld.C1 = CFrame.new(0, -1, 0) |
504 | + | |
505 | - | ---------------------------------------------------- |
505 | + | |
506 | - | z = Instance.new("Sound",char) --Smile: print("â?º") |
506 | + | |
507 | - | z.SoundId = "rbxassetid://0"--410761150, 411368002 |
507 | + | |
508 | - | z.Looped = true |
508 | + | |
509 | - | z.Pitch = 1 |
509 | + | |
510 | - | z.Volume = 1 |
510 | + | |
511 | - | wait(0.1) |
511 | + | |
512 | - | z:Play() |
512 | + | |
513 | - | ---------------------------------------------------- |
513 | + | |
514 | - | New = function(Object, Parent, Name, Data) |
514 | + | |
515 | - | local Object = Instance.new(Object) |
515 | + | |
516 | - | for Index, Value in pairs(Data or {}) do |
516 | + | |
517 | - | Object[Index] = Value |
517 | + | |
518 | ||
519 | - | Object.Parent = Parent |
519 | + | |
520 | - | Object.Name = Name |
520 | + | |
521 | - | return Object |
521 | + | |
522 | return true | |
523 | - | ---------------------------------------------------- |
523 | + | |
524 | - | --Left Arm |
524 | + | |
525 | - | m = Instance.new("Model") |
525 | + | |
526 | - | m.Name = "LeftArm" |
526 | + | |
527 | ||
528 | - | p4 = Instance.new("Part", m) |
528 | + | |
529 | - | p4.BrickColor = BrickColor.new("Really black") |
529 | + | |
530 | - | p4.Material = Enum.Material.SmoothPlastic |
530 | + | |
531 | - | p4.Name = "LeftArmPlate" |
531 | + | |
532 | - | p4.Size = Vector3.new(1, 2, 1) |
532 | + | |
533 | - | p4.Transparency = 1 |
533 | + | |
534 | - | p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines |
534 | + | |
535 | - | p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines |
535 | + | |
536 | - | p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines |
536 | + | |
537 | - | p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines |
537 | + | |
538 | - | p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines |
538 | + | |
539 | - | p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines |
539 | + | |
540 | - | b4 = Instance.new("SpecialMesh", p4) |
540 | + | |
541 | - | b4.MeshType = Enum.MeshType.Brick |
541 | + | |
542 | - | b4.Name = "Mesh" |
542 | + | |
543 | - | b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) |
543 | + | |
544 | if RayHit and CheckIntangible(RayHit) then | |
545 | if DelayIfHit then | |
546 | wait() | |
547 | end | |
548 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
549 | - | w1 = Instance.new("Weld", p1) |
549 | + | |
550 | - | w1.Name = "Part_Weld" |
550 | + | |
551 | - | w1.Part0 = p1 |
551 | + | |
552 | - | w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
552 | + | |
553 | - | w1.Part1 = p2 |
553 | + | |
554 | - | w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
554 | + | |
555 | - | w2 = Instance.new("Weld", p2) |
555 | + | |
556 | - | w2.Name = "Part_Weld" |
556 | + | |
557 | - | w2.Part0 = p2 |
557 | + | |
558 | - | w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
558 | + | |
559 | - | w2.Part1 = p3 |
559 | + | |
560 | - | w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
560 | + | |
561 | - | w3 = Instance.new("Weld", p3) |
561 | + | |
562 | - | w3.Name = "LeftArmPlate_Weld" |
562 | + | |
563 | - | w3.Part0 = p3 |
563 | + | |
564 | - | w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
564 | + | |
565 | - | w3.Part1 = p4 |
565 | + | |
566 | - | w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
566 | + | |
567 | - | w4 = Instance.new("Weld", p4) |
567 | + | |
568 | - | w4.Name = "Part_Weld" |
568 | + | |
569 | - | w4.Part0 = p4 |
569 | + | |
570 | - | w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
570 | + | |
571 | - | w4.Part1 = p5 |
571 | + | |
572 | - | w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
572 | + | |
573 | - | w5 = Instance.new("Weld", p5) |
573 | + | |
574 | - | w5.Name = "Part_Weld" |
574 | + | |
575 | - | w5.Part0 = p5 |
575 | + | |
576 | - | w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
576 | + | |
577 | - | w5.Part1 = p6 |
577 | + | |
578 | - | w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
578 | + | |
579 | - | w6 = Instance.new("Weld", p6) |
579 | + | |
580 | - | w6.Name = "Part_Weld" |
580 | + | |
581 | - | w6.Part0 = p6 |
581 | + | |
582 | - | w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
582 | + | |
583 | - | w6.Part1 = p7 |
583 | + | |
584 | - | w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
584 | + | |
585 | - | w7 = Instance.new("Weld", p7) |
585 | + | |
586 | - | w7.Name = "Part_Weld" |
586 | + | |
587 | - | w7.Part0 = p7 |
587 | + | |
588 | - | w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
588 | + | |
589 | - | w7.Part1 = p8 |
589 | + | |
590 | - | w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
590 | + | |
591 | - | w8 = Instance.new("Weld", p8) |
591 | + | |
592 | - | w8.Name = "Part_Weld" |
592 | + | |
593 | - | w8.Part0 = p8 |
593 | + | |
594 | - | w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
594 | + | |
595 | - | w8.Part1 = p9 |
595 | + | |
596 | - | w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
596 | + | |
597 | - | w9 = Instance.new("Weld", p9) |
597 | + | |
598 | - | w9.Name = "Part_Weld" |
598 | + | |
599 | - | w9.Part0 = p9 |
599 | + | |
600 | - | w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
600 | + | |
601 | - | w9.Part1 = p10 |
601 | + | |
602 | - | w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
602 | + | |
603 | - | w10 = Instance.new("Weld", p10) |
603 | + | |
604 | - | w10.Name = "Part_Weld" |
604 | + | |
605 | - | w10.Part0 = p10 |
605 | + | |
606 | - | w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
606 | + | |
607 | - | w10.Part1 = p11 |
607 | + | |
608 | - | w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
608 | + | |
609 | - | w11 = Instance.new("Weld", p11) |
609 | + | |
610 | - | w11.Name = "Part_Weld" |
610 | + | |
611 | - | w11.Part0 = p11 |
611 | + | |
612 | - | w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
612 | + | |
613 | - | w11.Part1 = p12 |
613 | + | |
614 | - | w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
614 | + | |
615 | - | w12 = Instance.new("Weld", p12) |
615 | + | |
616 | - | w12.Name = "Part_Weld" |
616 | + | |
617 | - | w12.Part0 = p12 |
617 | + | |
618 | - | w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
618 | + | |
619 | - | w12.Part1 = p13 |
619 | + | |
620 | - | w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
620 | + | |
621 | - | w13 = Instance.new("Weld", p13) |
621 | + | |
622 | - | w13.Name = "Part_Weld" |
622 | + | |
623 | - | w13.Part0 = p13 |
623 | + | |
624 | - | w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
624 | + | |
625 | - | w13.Part1 = p14 |
625 | + | |
626 | - | w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
626 | + | |
627 | - | w14 = Instance.new("Weld", p14) |
627 | + | |
628 | - | w14.Name = "Part_Weld" |
628 | + | |
629 | - | w14.Part0 = p14 |
629 | + | |
630 | - | w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
630 | + | |
631 | - | w14.Part1 = p15 |
631 | + | |
632 | - | w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
632 | + | |
633 | - | w15 = Instance.new("Weld", p15) |
633 | + | |
634 | - | w15.Name = "Part_Weld" |
634 | + | |
635 | - | w15.Part0 = p15 |
635 | + | |
636 | - | w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
636 | + | |
637 | - | w15.Part1 = p16 |
637 | + | |
638 | - | w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5) |
638 | + | |
639 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
640 | - | m.Parent = larm |
640 | + | |
641 | - | m:MakeJoints() |
641 | + | |
642 | - | ---------------------------------------------------- |
642 | + | |
643 | - | local cor = Instance.new("Part", larm.LeftArm) |
643 | + | |
644 | - | cor.Name = "Thingy" |
644 | + | |
645 | - | cor.Locked = true |
645 | + | |
646 | - | cor.BottomSurface = 0 |
646 | + | |
647 | - | cor.CanCollide = false |
647 | + | |
648 | - | cor.Size = Vector3.new(1, 1, 1) |
648 | + | |
649 | - | cor.Transparency = 1 |
649 | + | |
650 | - | cor.TopSurface = 0 |
650 | + | |
651 | - | corw = Instance.new("Weld", cor) |
651 | + | |
652 | - | corw.Part0 = larm |
652 | + | |
653 | - | corw.Part1 = cor |
653 | + | |
654 | - | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
654 | + | |
655 | - | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
655 | + | |
656 | - | weld1 = Instance.new("Weld", larm.LeftArm) |
656 | + | |
657 | - | weld1.Part0 = cor |
657 | + | |
658 | - | weld1.Part1 = larm.LeftArm.LeftArmPlate |
658 | + | |
659 | - | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
659 | + | |
660 | - | --Right Arm |
660 | + | |
661 | - | m2 = Instance.new("Model") |
661 | + | |
662 | - | m2.Name = "RightArm" |
662 | + | |
663 | end | |
664 | - | p7 = Instance.new("Part", m2) |
664 | + | |
665 | - | p7.BrickColor = BrickColor.new("Institutional white") |
665 | + | |
666 | - | p7.Material = Enum.Material.SmoothPlastic |
666 | + | |
667 | - | p7.Transparency = 1 |
667 | + | |
668 | - | p7.Name = "RightArmPlate" |
668 | + | |
669 | - | p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
669 | + | |
670 | - | p7.FormFactor = Enum.FormFactor.Symmetric |
670 | + | |
671 | - | p7.Size = Vector3.new(1, 2, 1) |
671 | + | |
672 | - | p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines |
672 | + | |
673 | - | p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines |
673 | + | |
674 | - | p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines |
674 | + | |
675 | - | p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines |
675 | + | |
676 | - | p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines |
676 | + | |
677 | - | p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines |
677 | + | |
678 | - | b7 = Instance.new("SpecialMesh", p7) |
678 | + | |
679 | - | b7.MeshType = Enum.MeshType.Brick |
679 | + | |
680 | - | b7.Name = "Mesh" |
680 | + | |
681 | - | b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) |
681 | + | |
682 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
683 | Debris:AddItem(RingPiece,SWAIT/100) | |
684 | - | w1 = Instance.new("Weld", p1) |
684 | + | |
685 | - | w1.Name = "Part_Weld" |
685 | + | |
686 | - | w1.Part0 = p1 |
686 | + | |
687 | - | w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
687 | + | |
688 | - | w1.Part1 = p2 |
688 | + | |
689 | - | w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
689 | + | |
690 | - | w2 = Instance.new("Weld", p2) |
690 | + | |
691 | - | w2.Name = "Part_Weld" |
691 | + | |
692 | - | w2.Part0 = p2 |
692 | + | |
693 | - | w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
693 | + | |
694 | - | w2.Part1 = p3 |
694 | + | |
695 | - | w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
695 | + | |
696 | - | w3 = Instance.new("Weld", p3) |
696 | + | |
697 | - | w3.Name = "Part_Weld" |
697 | + | |
698 | - | w3.Part0 = p3 |
698 | + | |
699 | - | w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
699 | + | |
700 | - | w3.Part1 = p4 |
700 | + | |
701 | - | w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
701 | + | |
702 | - | w4 = Instance.new("Weld", p4) |
702 | + | |
703 | - | w4.Name = "Part_Weld" |
703 | + | |
704 | - | w4.Part0 = p4 |
704 | + | |
705 | - | w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
705 | + | |
706 | - | w4.Part1 = p5 |
706 | + | |
707 | - | w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
707 | + | |
708 | - | w5 = Instance.new("Weld", p5) |
708 | + | |
709 | - | w5.Name = "Part_Weld" |
709 | + | |
710 | - | w5.Part0 = p5 |
710 | + | |
711 | - | w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
711 | + | |
712 | - | w5.Part1 = p6 |
712 | + | |
713 | - | w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
713 | + | |
714 | - | w6 = Instance.new("Weld", p6) |
714 | + | |
715 | - | w6.Name = "RightArmPlate_Weld" |
715 | + | |
716 | - | w6.Part0 = p6 |
716 | + | |
717 | - | w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
717 | + | |
718 | - | w6.Part1 = p7 |
718 | + | |
719 | - | w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
719 | + | |
720 | - | w7 = Instance.new("Weld", p7) |
720 | + | |
721 | - | w7.Name = "Part_Weld" |
721 | + | |
722 | - | w7.Part0 = p7 |
722 | + | |
723 | - | w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
723 | + | |
724 | - | w7.Part1 = p8 |
724 | + | |
725 | - | w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
725 | + | |
726 | - | w8 = Instance.new("Weld", p8) |
726 | + | |
727 | - | w8.Name = "Part_Weld" |
727 | + | |
728 | - | w8.Part0 = p8 |
728 | + | |
729 | - | w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
729 | + | |
730 | - | w8.Part1 = p9 |
730 | + | |
731 | - | w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
731 | + | |
732 | - | w9 = Instance.new("Weld", p9) |
732 | + | |
733 | - | w9.Name = "Part_Weld" |
733 | + | |
734 | - | w9.Part0 = p9 |
734 | + | |
735 | - | w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
735 | + | |
736 | - | w9.Part1 = p10 |
736 | + | |
737 | - | w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
737 | + | |
738 | - | w10 = Instance.new("Weld", p10) |
738 | + | |
739 | - | w10.Name = "Part_Weld" |
739 | + | |
740 | - | w10.Part0 = p10 |
740 | + | |
741 | - | w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
741 | + | |
742 | - | w10.Part1 = p11 |
742 | + | |
743 | - | w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
743 | + | |
744 | - | w11 = Instance.new("Weld", p11) |
744 | + | |
745 | - | w11.Name = "Part_Weld" |
745 | + | |
746 | - | w11.Part0 = p11 |
746 | + | |
747 | - | w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
747 | + | |
748 | - | w11.Part1 = p12 |
748 | + | |
749 | - | w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
749 | + | |
750 | - | w12 = Instance.new("Weld", p12) |
750 | + | |
751 | - | w12.Name = "Part_Weld" |
751 | + | |
752 | - | w12.Part0 = p12 |
752 | + | |
753 | - | w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
753 | + | |
754 | - | w12.Part1 = p13 |
754 | + | |
755 | - | w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
755 | + | |
756 | - | w13 = Instance.new("Weld", p13) |
756 | + | |
757 | - | w13.Name = "Part_Weld" |
757 | + | |
758 | - | w13.Part0 = p13 |
758 | + | |
759 | - | w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
759 | + | |
760 | - | w13.Part1 = p14 |
760 | + | |
761 | - | w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
761 | + | |
762 | - | w14 = Instance.new("Weld", p14) |
762 | + | |
763 | - | w14.Name = "Part_Weld" |
763 | + | |
764 | - | w14.Part0 = p14 |
764 | + | |
765 | - | w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
765 | + | |
766 | - | w14.Part1 = p15 |
766 | + | |
767 | - | w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
767 | + | |
768 | - | w15 = Instance.new("Weld", p15) |
768 | + | |
769 | - | w15.Name = "Part_Weld" |
769 | + | |
770 | - | w15.Part0 = p15 |
770 | + | |
771 | - | w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
771 | + | |
772 | - | w15.Part1 = p16 |
772 | + | |
773 | - | w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
773 | + | |
774 | - | w16 = Instance.new("Weld", p16) |
774 | + | |
775 | - | w16.Name = "Part_Weld" |
775 | + | |
776 | - | w16.Part0 = p16 |
776 | + | |
777 | - | w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
777 | + | |
778 | - | w16.Part1 = p17 |
778 | + | |
779 | - | w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
779 | + | |
780 | - | w17 = Instance.new("Weld", p17) |
780 | + | |
781 | - | w17.Name = "Part_Weld" |
781 | + | |
782 | - | w17.Part0 = p17 |
782 | + | |
783 | - | w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
783 | + | |
784 | - | w17.Part1 = p18 |
784 | + | |
785 | - | w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
785 | + | |
786 | - | w18 = Instance.new("Weld", p18) |
786 | + | |
787 | - | w18.Name = "Part_Weld" |
787 | + | |
788 | - | w18.Part0 = p18 |
788 | + | |
789 | - | w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
789 | + | |
790 | - | w18.Part1 = p19 |
790 | + | |
791 | - | w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
791 | + | |
792 | - | m2.Parent = rarm |
792 | + | |
793 | - | m2:MakeJoints() |
793 | + | |
794 | - | ---------------------------------------------------- |
794 | + | |
795 | - | local cor2 = Instance.new("Part", rarm.RightArm) |
795 | + | |
796 | - | cor2.Name = "Thingy" |
796 | + | |
797 | - | cor2.Locked = true |
797 | + | |
798 | - | cor2.BottomSurface = 0 |
798 | + | |
799 | - | cor2.CanCollide = false |
799 | + | |
800 | - | cor2.Size = Vector3.new(1, 1, 1) |
800 | + | |
801 | - | cor2.Transparency = 1 |
801 | + | |
802 | - | cor2.TopSurface = 0 |
802 | + | |
803 | - | corw2 = Instance.new("Weld", cor2) |
803 | + | |
804 | - | corw2.Part0 = rarm |
804 | + | |
805 | - | corw2.Part1 = cor2 |
805 | + | |
806 | - | corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
806 | + | |
807 | - | corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
807 | + | |
808 | - | weld2 = Instance.new("Weld", rarm.RightArm) |
808 | + | |
809 | - | weld2.Part0 = cor2 |
809 | + | |
810 | - | weld2.Part1 = rarm.RightArm.RightArmPlate |
810 | + | |
811 | - | weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
811 | + | |
812 | ||
813 | function KeyUp(Key) | |
814 | - | --Zyrodoxa |
814 | + | |
815 | - | m8 = Instance.new("Model") |
815 | + | |
816 | - | m8.Name = "Zyrodoxa" |
816 | + | |
817 | Mouse.Button1Down:connect(function(NEWKEY) | |
818 | - | p16 = Instance.new("Part", m8) |
818 | + | |
819 | - | p16.BrickColor = BrickColor.new("Instutional white") |
819 | + | |
820 | - | p16.Material = Enum.Material.Metal |
820 | + | |
821 | - | p16.Name = "Handle" |
821 | + | |
822 | - | p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007) |
822 | + | |
823 | - | p16.CanCollide = false |
823 | + | |
824 | - | p16.Locked = true |
824 | + | |
825 | - | p16.FormFactor = Enum.FormFactor.Custom |
825 | + | |
826 | - | p16.Size = Vector3.new(0, 0, 0) |
826 | + | |
827 | - | p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines |
827 | + | |
828 | - | p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines |
828 | + | |
829 | - | p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines |
829 | + | |
830 | - | p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines |
830 | + | |
831 | - | p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines |
831 | + | |
832 | - | p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines |
832 | + | |
833 | - | b16 = Instance.new("BlockMesh", p16) |
833 | + | |
834 | - | b16.Name = "Mesh" |
834 | + | |
835 | - | b16.Scale = Vector3.new(0, 0, 0) |
835 | + | |
836 | g = Character:GetChildren() | |
837 | - | w16 = Instance.new("Weld", p16) |
837 | + | |
838 | - | w16.Name = "Block_Weld" |
838 | + | |
839 | - | w16.Part0 = p16 |
839 | + | |
840 | - | w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015) |
840 | + | |
841 | - | w16.Part1 = p17 |
841 | + | |
842 | - | w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1) |
842 | + | |
843 | end | |
844 | - | m8.Parent = rarm |
844 | + | |
845 | - | m8:MakeJoints() |
845 | + | |
846 | - | ---------------------------------------------------- |
846 | + | |
847 | - | local cor8 = Instance.new("Part", rarm.Zyrodoxa) |
847 | + | |
848 | - | cor8.Name = "Thingy" |
848 | + | |
849 | - | cor8.Locked = true |
849 | + | |
850 | - | cor8.BottomSurface = 0 |
850 | + | |
851 | - | cor8.CanCollide = false |
851 | + | |
852 | - | cor8.Size = Vector3.new(1, 1, 1) |
852 | + | |
853 | - | cor8.Transparency = 1 |
853 | + | |
854 | - | cor8.TopSurface = 0 |
854 | + | |
855 | - | corw8 = Instance.new("Weld", cor8) |
855 | + | |
856 | - | corw8.Part0 = rarm |
856 | + | |
857 | - | corw8.Part1 = cor8 |
857 | + | |
858 | - | corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)) |
858 | + | |
859 | - | corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
859 | + | |
860 | - | weld8 = Instance.new("Weld", rarm.Zyrodoxa) |
860 | + | |
861 | - | weld8.Part0 = cor8 |
861 | + | |
862 | - | weld8.Part1 = rarm.Zyrodoxa.Handle |
862 | + | |
863 | - | weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
863 | + | |
864 | - | ---------------------------------------------------- |
864 | + | |
865 | - | models = {m,m2,m3,m4,m5,m6,m7,m8} |
865 | + | |
866 | - | parts = {} |
866 | + | |
867 | - | Stepped:connect(function() |
867 | + | |
868 | - | for i,v in pairs(models) do |
868 | + | |
869 | - | for _, a in pairs(v:GetChildren()) do |
869 | + | |
870 | - | if v:IsA("Part") and v.Name ~= "Thingy" then |
870 | + | |
871 | - | table.insert(parts, a) |
871 | + | |
872 | - | for i,v in pairs(parts) do |
872 | + | |
873 | - | v.CanCollide = false |
873 | + | |
874 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
875 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
876 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
877 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
878 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then | |
879 | - | ---------------------------------------------------- |
879 | + | |
880 | - | local animpose = "Idle1" |
880 | + | |
881 | - | local lastanimpose = "Idle1" |
881 | + | |
882 | - | local grab = false |
882 | + | |
883 | - | local Smooth = 1 |
883 | + | |
884 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
885 | ANIM = "Jump" | |
886 | if ATTACK == false then | |
887 | - | local ffing = false |
887 | + | |
888 | - | ---------------------------------------------------- |
888 | + | |
889 | - | --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k |
889 | + | |
890 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
891 | - | function FindHumanoids() |
891 | + | |
892 | - | local function c_region(Position, Size) |
892 | + | |
893 | - | local SizeOffset = Size/2 |
893 | + | |
894 | - | local Point1 = Position - SizeOffset |
894 | + | |
895 | - | local Point2 = Position + SizeOffset |
895 | + | |
896 | - | local a = Instance.new("Part", workspace) |
896 | + | |
897 | - | a.Anchored = true |
897 | + | |
898 | - | a.Size = Size |
898 | + | |
899 | - | a.Position = Position |
899 | + | |
900 | - | print("Hey!, I'm making a part!") |
900 | + | |
901 | - | return Region3.new(Point1, Point2) |
901 | + | |
902 | - | end |
902 | + | |
903 | - | |
903 | + | |
904 | - | local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) |
904 | + | |
905 | - | local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) |
905 | + | |
906 | - | local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) |
906 | + | |
907 | - | local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) |
907 | + | |
908 | - | |
908 | + | |
909 | - | local regions = {a, b, c, d} |
909 | + | |
910 | - | |
910 | + | |
911 | - | local found_humanoids = {} |
911 | + | |
912 | - | local already_found = {char.Name} |
912 | + | |
913 | - | |
913 | + | |
914 | - | for _, region in pairs(regions) do |
914 | + | |
915 | - | for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do |
915 | + | |
916 | - | print(part, part.Parent, part.Name) ---nope |
916 | + | |
917 | - | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then |
917 | + | |
918 | - | local humanoid = part.Parent:FindFirstChild("Humanoid") |
918 | + | |
919 | - | local name = humanoid.Parent.Name |
919 | + | |
920 | - | local exists = false |
920 | + | |
921 | - | for _, n in pairs(already_found) do |
921 | + | |
922 | - | if n == name then |
922 | + | |
923 | - | exists = true |
923 | + | |
924 | - | end |
924 | + | |
925 | - | end |
925 | + | |
926 | - | if not exists then |
926 | + | |
927 | - | table.insert(already_found, name) |
927 | + | |
928 | - | table.insert(found_humanoids, humanoid) |
928 | + | |
929 | - | end |
929 | + | |
930 | - | elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then |
930 | + | |
931 | - | local humanoid = part.Parent.Parent:FindFirstChild("Humanoid") |
931 | + | |
932 | - | local name = humanoid.Parent.Parent.Name |
932 | + | |
933 | - | local exists = false |
933 | + | |
934 | - | for _, n in pairs(already_found) do |
934 | + | |
935 | - | if n == name then |
935 | + | |
936 | - | exists = true |
936 | + | |
937 | - | end |
937 | + | |
938 | - | end |
938 | + | |
939 | - | if not exists then |
939 | + | |
940 | - | table.insert(already_found, name) |
940 | + | |
941 | - | table.insert(found_humanoids, humanoid) |
941 | + | |
942 | - | end |
942 | + | |
943 | - | end |
943 | + | |
944 | Humanoid.PlatformStand = false | |
945 | local GAME = game.Players:GetChildren() | |
946 | - | return found_humanoids |
946 | + | |
947 | local PLAY = GAME[PLAYER] | |
948 | if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then | |
949 | - | local humanoids = FindHumanoids() |
949 | + | |
950 | - | if #humanoids == 0 then |
950 | + | |
951 | - | for i, v in pairs(humanoids) do |
951 | + | |
952 | - | print(v.Parent.Name) |
952 | + | |
953 | - | if Debounces.Slashing == true then |
953 | + | |
954 | - | v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage? |
954 | + | |
955 | - | elseif Debounces.Slashing == false then |
955 | + | |
956 | ||
957 | ||
958 | ||
959 | - | wait(0.3) |
959 | + | |
960 | - | end]]-- |
960 | + | |
961 | - | ---------------------------------------------------- |
961 | + | |
962 | - | --[[mouse.KeyDown:connect(function(key) |
962 | + | |
963 | - | if key == "f" then |
963 | + | |
964 | - | if Debounces.CanAttack == true then |
964 | + | |
965 | - | Debounces.CanAttack = false |
965 | + | |
966 | - | Debounces.NoIdl = true |
966 | + | |
967 | - | Debounces.on = true |
967 | + | |
968 | - | for i = 1, 20 do |
968 | + | |
969 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
969 | + | |
970 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
970 | + | |
971 | - | CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1) |
971 | + | |
972 | - | CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) |
972 | + | |
973 | - | CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) |
973 | + | |
974 | - | CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) |
974 | + | |
975 | - | CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) |
975 | + | |
976 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8) |
976 | + | |
977 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
977 | + | |
978 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8) |
978 | + | |
979 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
979 | + | |
980 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5) |
980 | + | |
981 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5) |
981 | + | |
982 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1) |
982 | + | |
983 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1) |
983 | + | |
984 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1) |
984 | + | |
985 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1) |
985 | + | |
986 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1) |
986 | + | |
987 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1) |
987 | + | |
988 | - | if Debounces.on == false then |
988 | + | |
989 | music.Volume = 1 | |
990 | music.SoundId = "rbxassetid://853707984" | |
991 | - | fat.Event:wait() |
991 | + | |
992 | music:Play() | |
993 | local ban = Instance.new("Sound",char.Torso) | |
994 | ban.SoundId = "rbxassetid://147722910" | |
995 | - | end)]]-- |
995 | + | |
996 | - | ---------------------------------------------------- |
996 | + | |
997 | - | mod4 = Instance.new("Model",char) |
997 | + | |
998 | banh.Size = Vector3.new(1, 5.2, 1) | |
999 | - | ptez = {0.7, 0.8, 0.9, 1} |
999 | + | |
1000 | local banm = Instance.new("FileMesh",banh) | |
1001 | - | function FindNearestTorso(Position,Distance,SinglePlayer) |
1001 | + | |
1002 | - | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end |
1002 | + | |
1003 | - | local List = {} |
1003 | + | |
1004 | - | for i,v in pairs(workspace:GetChildren())do |
1004 | + | |
1005 | - | if v:IsA("Model")then |
1005 | + | |
1006 | - | if v:findFirstChild("Torso")then |
1006 | + | |
1007 | - | if v ~= char then |
1007 | + | |
1008 | - | if(v.Torso.Position -Position).magnitude <= Distance then |
1008 | + | |
1009 | - | table.insert(List,v) |
1009 | + | |
1010 | - | end |
1010 | + | |
1011 | - | end |
1011 | + | |
1012 | - | end |
1012 | + | |
1013 | - | end |
1013 | + | |
1014 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
1015 | - | return List |
1015 | + | |
1016 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
1017 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
1018 | - | function Slam() |
1018 | + | |
1019 | - | local part=Instance.new('Part',mod4) |
1019 | + | |
1020 | - | part.Anchored=true |
1020 | + | |
1021 | - | part.CanCollide=false |
1021 | + | |
1022 | - | part.FormFactor='Custom' |
1022 | + | |
1023 | - | part.Size=Vector3.new(.2,.2,.2) |
1023 | + | |
1024 | - | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) |
1024 | + | |
1025 | - | part.Transparency=.7 |
1025 | + | |
1026 | - | part.BrickColor=BrickColor.new('Really black') |
1026 | + | |
1027 | - | mesh=Instance.new('SpecialMesh',part) |
1027 | + | |
1028 | - | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' |
1028 | + | |
1029 | - | mesh.Scale=Vector3.new(3,3,3) |
1029 | + | |
1030 | - | local part2=Instance.new('Part',mod4) |
1030 | + | |
1031 | - | part2.Anchored=true |
1031 | + | |
1032 | - | part2.CanCollide=false |
1032 | + | |
1033 | - | part2.FormFactor='Custom' |
1033 | + | |
1034 | - | part2.Size=Vector3.new(.2,.2,.2) |
1034 | + | |
1035 | - | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) |
1035 | + | |
1036 | - | part2.Transparency=.7 |
1036 | + | |
1037 | - | part2.BrickColor=BrickColor.new('Institutional white') |
1037 | + | |
1038 | - | mesh2=Instance.new('SpecialMesh',part2) |
1038 | + | |
1039 | - | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' |
1039 | + | |
1040 | - | mesh2.Scale=Vector3.new(3,1.5,3) |
1040 | + | |
1041 | - | x = Instance.new("Sound",larm) |
1041 | + | |
1042 | - | x.SoundId = "http://www.roblox.com/asset/?id=142070127" |
1042 | + | |
1043 | - | x.Pitch = ptez[math.random(1,#ptez)] |
1043 | + | |
1044 | - | x.Volume = 1 |
1044 | + | |
1045 | - | wait(.1) |
1045 | + | |
1046 | - | x1 = Instance.new("Sound",larm) |
1046 | + | |
1047 | - | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" |
1047 | + | |
1048 | - | x1.Pitch = ptez[math.random(1,#ptez)] |
1048 | + | |
1049 | - | x1.Volume = 1 |
1049 | + | |
1050 | - | wait(.1) |
1050 | + | |
1051 | - | x:Play() |
1051 | + | |
1052 | - | x1:Play() |
1052 | + | |
1053 | - | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do |
1053 | + | |
1054 | - | if v:FindFirstChild('Humanoid') then |
1054 | + | |
1055 | - | v.Humanoid:TakeDamage(math.random(30,45)) |
1055 | + | |
1056 | display.CanCollide = false | |
1057 | local txt = Instance.new("BillboardGui", display) | |
1058 | - | coroutine.resume(coroutine.create(function() |
1058 | + | |
1059 | - | for i=0,0.62,0.13 do |
1059 | + | |
1060 | - | wait() |
1060 | + | |
1061 | - | part.CFrame=part.CFrame |
1061 | + | |
1062 | - | part.Transparency=i |
1062 | + | |
1063 | - | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) |
1063 | + | |
1064 | - | part2.CFrame=part2.CFrame |
1064 | + | |
1065 | - | part2.Transparency=i |
1065 | + | |
1066 | - | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) |
1066 | + | |
1067 | - | end |
1067 | + | |
1068 | - | part.Parent=nil |
1068 | + | |
1069 | - | part2.Parent=nil |
1069 | + | |
1070 | - | x:Destroy() |
1070 | + | |
1071 | - | end)) |
1071 | + | |
1072 | game:GetService("Debris"):AddItem(display,2) | |
1073 | - | ---------------------------------------------------- |
1073 | + | |
1074 | - | wPart = function(x,y,z,color,tr,cc,an,parent) |
1074 | + | |
1075 | - | local wp = Instance.new('WedgePart',parent or Weapon) |
1075 | + | |
1076 | - | wp.formFactor = 'Custom' |
1076 | + | |
1077 | - | wp.Size = Vector3.new(x,y,z) |
1077 | + | |
1078 | - | wp.BrickColor = BrickColor.new(color) |
1078 | + | |
1079 | - | wp.CanCollide = cc |
1079 | + | |
1080 | - | wp.Transparency = tr |
1080 | + | |
1081 | - | wp.Anchored = an |
1081 | + | |
1082 | - | wp.TopSurface,wp.BottomSurface = 0,0 |
1082 | + | |
1083 | - | return wp |
1083 | + | |
1084 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i) | |
1085 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i) | |
1086 | - | Mesh = function(par,num,x,y,z) |
1086 | + | |
1087 | - | local msh = _ |
1087 | + | |
1088 | - | if num == 1 then |
1088 | + | |
1089 | - | msh = Instance.new("CylinderMesh",par) |
1089 | + | |
1090 | - | elseif num == 2 then |
1090 | + | |
1091 | - | msh = Instance.new("SpecialMesh",par) |
1091 | + | |
1092 | - | msh.MeshType = 3 |
1092 | + | |
1093 | - | elseif num == 3 then |
1093 | + | |
1094 | - | msh = Instance.new("BlockMesh",par) |
1094 | + | |
1095 | - | elseif num == 4 then |
1095 | + | |
1096 | - | msh = Instance.new("SpecialMesh",par) |
1096 | + | |
1097 | - | msh.MeshType = "Torso" |
1097 | + | |
1098 | - | elseif type(num) == 'string' then |
1098 | + | |
1099 | - | msh = Instance.new("SpecialMesh",par) |
1099 | + | |
1100 | - | msh.MeshId = num |
1100 | + | |
1101 | - | end |
1101 | + | |
1102 | - | msh.Scale = Vector3.new(x,y,z) |
1102 | + | |
1103 | - | return msh |
1103 | + | |
1104 | for i = 0,1 , 0.08 do | |
1105 | headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i) | |
1106 | - | local function CFrameFromTopBack(at, top, back) |
1106 | + | |
1107 | - | local right = top:Cross(back) |
1107 | + | |
1108 | - | return CFrame.new(at.x, at.y, at.z, |
1108 | + | |
1109 | - | right.x, top.x, back.x, |
1109 | + | |
1110 | - | right.y, top.y, back.y, |
1110 | + | |
1111 | - | right.z, top.z, back.z) |
1111 | + | |
1112 | cananimate = true | |
1113 | hitbox:Destroy() | |
1114 | - | function Triangle(a, b, c) |
1114 | + | |
1115 | - | local edg1 = (c-a):Dot((b-a).unit) |
1115 | + | |
1116 | - | local edg2 = (a-b):Dot((c-b).unit) |
1116 | + | |
1117 | - | local edg3 = (b-c):Dot((a-c).unit) |
1117 | + | |
1118 | - | if edg1 <= (b-a).magnitude and edg1 >= 0 then |
1118 | + | |
1119 | - | a, b, c = a, b, c |
1119 | + | |
1120 | - | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then |
1120 | + | |
1121 | - | a, b, c = b, c, a |
1121 | + | |
1122 | - | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then |
1122 | + | |
1123 | - | a, b, c = c, a, b |
1123 | + | |
1124 | - | else |
1124 | + | |
1125 | - | print("unreachable") |
1125 | + | |
1126 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
1127 | - | local len1 = (c-a):Dot((b-a).unit) |
1127 | + | |
1128 | - | local len2 = (b-a).magnitude - len1 |
1128 | + | |
1129 | - | local width = (a + (b-a).unit*len1 - c).magnitude |
1129 | + | |
1130 | - | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) |
1130 | + | |
1131 | - | local list = {} |
1131 | + | |
1132 | - | if len1 > 0.01 then |
1132 | + | |
1133 | - | local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char) |
1133 | + | |
1134 | - | local sz = Vector3.new(0.2, width, len1) |
1134 | + | |
1135 | - | w1.Size = sz |
1135 | + | |
1136 | - | local sp = Mesh(w1,2,0,0,0) |
1136 | + | |
1137 | - | sp.MeshType='Wedge' |
1137 | + | |
1138 | - | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size |
1138 | + | |
1139 | - | w1:BreakJoints() |
1139 | + | |
1140 | - | w1.Anchored = true |
1140 | + | |
1141 | - | w1.Transparency = 0.7 |
1141 | + | |
1142 | - | Spawn(function() |
1142 | + | |
1143 | - | for i=0,1,0.1 do |
1143 | + | |
1144 | - | fat.Event:wait() |
1144 | + | |
1145 | - | w1.Transparency=w1.Transparency+0.03 |
1145 | + | |
1146 | - | end |
1146 | + | |
1147 | - | end) |
1147 | + | |
1148 | - | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) |
1148 | + | |
1149 | - | table.insert(list,w1) |
1149 | + | |
1150 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
1151 | - | if len2 > 0.01 then |
1151 | + | |
1152 | - | local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char) |
1152 | + | |
1153 | - | local sz = Vector3.new(0.2, width, len2) |
1153 | + | |
1154 | - | w2.Size = sz |
1154 | + | |
1155 | - | local sp = Mesh(w2,2,0,0,0) |
1155 | + | |
1156 | - | sp.MeshType='Wedge' |
1156 | + | |
1157 | - | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size |
1157 | + | |
1158 | - | w2:BreakJoints() |
1158 | + | |
1159 | - | w2.Anchored = true |
1159 | + | |
1160 | - | w2.Transparency = 0.7 |
1160 | + | |
1161 | - | Spawn(function() |
1161 | + | |
1162 | - | for i=0,1,0.1 do |
1162 | + | |
1163 | - | fat.Event:wait() |
1163 | + | |
1164 | - | w2.Transparency=w2.Transparency+0.03 |
1164 | + | |
1165 | - | end |
1165 | + | |
1166 | - | end) |
1166 | + | |
1167 | - | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) |
1167 | + | |
1168 | - | table.insert(list,w2) |
1168 | + | |
1169 | TextButton_4.Position = UDim2.new(0.47863248, 0, 0.557692289, 0) | |
1170 | - | return unpack(list) |
1170 | + | |
1171 | TextButton_4.Font = Enum.Font.SourceSans | |
1172 | TextButton_4.Text = "Ban Hammer v4" | |
1173 | - | function trail(p,t,h) |
1173 | + | |
1174 | - | Spawn(function() |
1174 | + | |
1175 | - | local blcf = p.CFrame |
1175 | + | |
1176 | - | local scfr = blcf |
1176 | + | |
1177 | - | for i=1,t do |
1177 | + | |
1178 | - | local blcf = p.CFrame |
1178 | + | |
1179 | - | if scfr and (p.Position-scfr.p).magnitude > .1 then |
1179 | + | |
1180 | - | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) |
1180 | + | |
1181 | - | if a then game.Debris:AddItem(a,1) end |
1181 | + | |
1182 | - | if b then game.Debris:AddItem(b,1) end |
1182 | + | |
1183 | - | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) |
1183 | + | |
1184 | - | if a then game.Debris:AddItem(a,1) end |
1184 | + | |
1185 | - | if b then game.Debris:AddItem(b,1) end |
1185 | + | |
1186 | - | scfr = blcf |
1186 | + | |
1187 | - | elseif not scfr then |
1187 | + | |
1188 | - | scfr = blcf |
1188 | + | |
1189 | --and I find out who you are, i will take massive action. | |
1190 | - | fat.Event:wait() |
1190 | + | |
1191 | ------------------------------------------------------- | |
1192 | - | scfr=nil |
1192 | + | |
1193 | local FavIDs = { | |
1194 | 340106355, --Nefl Crystals | |
1195 | - | --trail(char.Sword.Blade,1e1000,5) |
1195 | + | |
1196 | - | ---------------------------------------------------- |
1196 | + | |
1197 | - | function Dmg() |
1197 | + | |
1198 | - | local partofdeath = rarm.Zyrodoxa.Hitbox |
1198 | + | |
1199 | - | local function CreateRegion3FromLocAndSize(Position, Size) |
1199 | + | |
1200 | - | local SizeOffset = Size/2 |
1200 | + | |
1201 | - | local Point1 = Position - SizeOffset |
1201 | + | |
1202 | - | local Point2 = Position + SizeOffset |
1202 | + | |
1203 | - | return Region3.new(Point1, Point2) |
1203 | + | |
1204 | 595230126 --Robot Language | |
1205 | - | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) |
1205 | + | |
1206 | - | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do |
1206 | + | |
1207 | - | Spawn(function() |
1207 | + | |
1208 | - | if Debounces.Slashing == true and Debounces.Slashed == false then |
1208 | + | |
1209 | - | Debounces.Slashed = true |
1209 | + | |
1210 | - | ypcall(function() |
1210 | + | |
1211 | - | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid") |
1211 | + | |
1212 | - | humanoid:TakeDamage(math.random(10,18)) |
1212 | + | |
1213 | - | end) |
1213 | + | |
1214 | - | wait(.4) |
1214 | + | |
1215 | - | Debounces.Slashed = false |
1215 | + | |
1216 | local hum = char.Humanoid | |
1217 | local hed = char.Head | |
1218 | local root = char.HumanoidRootPart | |
1219 | local rootj = root.RootJoint | |
1220 | - | ---------------------------------------------------- |
1220 | + | |
1221 | - | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} |
1221 | + | |
1222 | - | ptz = {0.7, 0.8, 0.9, 1} |
1222 | + | |
1223 | - | idz = {"161006212", "161006195"} |
1223 | + | |
1224 | - | function attackone() |
1224 | + | |
1225 | - | for i = 1, 13 do |
1225 | + | |
1226 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) |
1226 | + | |
1227 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8) |
1227 | + | |
1228 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3) |
1228 | + | |
1229 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) |
1229 | + | |
1230 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5) |
1230 | + | |
1231 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5) |
1231 | + | |
1232 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5) |
1232 | + | |
1233 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5) |
1233 | + | |
1234 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7) |
1234 | + | |
1235 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7) |
1235 | + | |
1236 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) |
1236 | + | |
1237 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5) |
1237 | + | |
1238 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) |
1238 | + | |
1239 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) |
1239 | + | |
1240 | - | if Debounces.on == false then |
1240 | + | |
1241 | - | break |
1241 | + | |
1242 | IT = Instance.new | |
1243 | - | fat.Event:wait() |
1243 | + | |
1244 | Cos = math.cos | |
1245 | - | trail(rarm.Zyrodoxa.Hitbox,20,2) |
1245 | + | |
1246 | - | Debounces.Slashing = true |
1246 | + | |
1247 | - | wait(0.2) |
1247 | + | |
1248 | - | --[[z = Instance.new("Sound", hed) |
1248 | + | |
1249 | - | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] |
1249 | + | |
1250 | - | z.Pitch = ptz[math.random(1,#ptz)] |
1250 | + | |
1251 | - | z.Volume = 1 |
1251 | + | |
1252 | - | wait(.01) |
1252 | + | |
1253 | - | z:Play()]]-- |
1253 | + | |
1254 | - | for i = 1, 14 do |
1254 | + | |
1255 | - | Dmg() |
1255 | + | |
1256 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) |
1256 | + | |
1257 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8) |
1257 | + | |
1258 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4) |
1258 | + | |
1259 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4) |
1259 | + | |
1260 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4) |
1260 | + | |
1261 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4) |
1261 | + | |
1262 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7) |
1262 | + | |
1263 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) |
1263 | + | |
1264 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4) |
1264 | + | |
1265 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1265 | + | |
1266 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) |
1266 | + | |
1267 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5) |
1267 | + | |
1268 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) |
1268 | + | |
1269 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5) |
1269 | + | |
1270 | - | if Debounces.on == false then break end |
1270 | + | |
1271 | - | rs:wait() |
1271 | + | |
1272 | LW.C0 = CF(-1.5, 0.5, 0) | |
1273 | - | Debounces.Slashing = false |
1273 | + | |
1274 | LW.Part1 = la | |
1275 | - | function attacktwo() |
1275 | + | |
1276 | - | Debounces.Slashing = true |
1276 | + | |
1277 | - | for i = 1, 14 do |
1277 | + | |
1278 | - | Dmg() |
1278 | + | |
1279 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4) |
1279 | + | |
1280 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4) |
1280 | + | |
1281 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7) |
1281 | + | |
1282 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1282 | + | |
1283 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5) |
1283 | + | |
1284 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) |
1284 | + | |
1285 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5) |
1285 | + | |
1286 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) |
1286 | + | |
1287 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) |
1287 | + | |
1288 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1288 | + | |
1289 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5) |
1289 | + | |
1290 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) |
1290 | + | |
1291 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5) |
1291 | + | |
1292 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) |
1292 | + | |
1293 | - | if Debounces.on == false then |
1293 | + | |
1294 | - | break |
1294 | + | |
1295 | tf = tf + s | |
1296 | - | rs:wait() |
1296 | + | |
1297 | if allowframeloss then | |
1298 | script.Heartbeat:Fire() | |
1299 | - | ---------------------------------------------------- |
1299 | + | |
1300 | else | |
1301 | - | ---------------------------------------------------- |
1301 | + | |
1302 | - | definition = 5 |
1302 | + | |
1303 | - | bc = {} |
1303 | + | |
1304 | - | bezierparts = {} |
1304 | + | |
1305 | - | function NoOutline(Part) |
1305 | + | |
1306 | - | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
1306 | + | |
1307 | tf = 0 | |
1308 | - | function draw(p,d) |
1308 | + | |
1309 | - | for i=1,d do |
1309 | + | |
1310 | - | local t = i/d |
1310 | + | |
1311 | - | bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2 |
1311 | + | |
1312 | end) | |
1313 | ------------------------------------------------------- | |
1314 | - | Spawn(function() fat.Event:wait() |
1314 | + | |
1315 | - | for i,v in pairs(bezierparts) do |
1315 | + | |
1316 | - | v.Transparency = 1 |
1316 | + | |
1317 | ------------------------------------------------------- | |
1318 | --Start Important Functions-- | |
1319 | ------------------------------------------------------- | |
1320 | - | --local points = {larm.Position,rarn.Position,invisipart.Position} |
1320 | + | |
1321 | - | --draw(points,definition) |
1321 | + | |
1322 | game:service("RunService").Stepped:wait(0) | |
1323 | - | fat.Event:wait() |
1323 | + | |
1324 | for i = 0, num do | |
1325 | - | rpart = Instance.new("Part",rarm) |
1325 | + | |
1326 | - | NoOutline(rpart) |
1326 | + | |
1327 | - | rpart.Anchored = false |
1327 | + | |
1328 | - | rpart.Size = Vector3.new(1,1,1) |
1328 | + | |
1329 | - | rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0) |
1329 | + | |
1330 | - | rpart.Transparency = 1 |
1330 | + | |
1331 | - | newWeld(rarm, rpart, 0, 0, 0) |
1331 | + | |
1332 | - | rpart.Weld.C1 = CFrame.new(0, 1.1, 0) |
1332 | + | |
1333 | - | lpart = Instance.new("Part",larm) |
1333 | + | |
1334 | - | NoOutline(lpart) |
1334 | + | |
1335 | - | lpart.Anchored = false |
1335 | + | |
1336 | - | lpart.Size = Vector3.new(1,1,1) |
1336 | + | |
1337 | - | lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0) |
1337 | + | |
1338 | - | lpart.Transparency = 1 |
1338 | + | |
1339 | - | newWeld(larm, lpart, 0, 0, 0) |
1339 | + | |
1340 | - | lpart.Weld.C1 = CFrame.new(0, 1.1, 0) |
1340 | + | |
1341 | - | invisipart = Instance.new("Part",torso) |
1341 | + | |
1342 | - | NoOutline(invisipart) |
1342 | + | |
1343 | - | invisipart.Anchored = false |
1343 | + | |
1344 | - | invisipart.Size = Vector3.new(1,1,1) |
1344 | + | |
1345 | - | invisipart.Transparency = 1 |
1345 | + | |
1346 | - | invisipart.CFrame = torso.CFrame |
1346 | + | |
1347 | - | newWeld(torso, invisipart, 0, 0, 0) |
1347 | + | |
1348 | - | invisipart.Weld.C1 = CFrame.new(0, 0, 6) |
1348 | + | |
1349 | - | table.insert(bezierparts, rpart) |
1349 | + | |
1350 | - | table.insert(bezierparts, lpart) |
1350 | + | |
1351 | - | table.insert(bezierparts, invisipart) |
1351 | + | |
1352 | - | for i = 1, 40 do |
1352 | + | |
1353 | - | local points = {lpart.Position,invisipart.Position,rpart.Position} |
1353 | + | |
1354 | - | draw(points,definition) |
1354 | + | |
1355 | - | --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6) |
1355 | + | |
1356 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1) |
1356 | + | |
1357 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1357 | + | |
1358 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1) |
1358 | + | |
1359 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1359 | + | |
1360 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2) |
1360 | + | |
1361 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) |
1361 | + | |
1362 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) |
1362 | + | |
1363 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1363 | + | |
1364 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2) |
1364 | + | |
1365 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) |
1365 | + | |
1366 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2) |
1366 | + | |
1367 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) |
1367 | + | |
1368 | - | if Debounces.on == false then |
1368 | + | |
1369 | local recip = 0.5 / s | |
1370 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1371 | - | fat.Event:wait() |
1371 | + | |
1372 | end | |
1373 | - | for i,v in pairs(bezierparts) do |
1373 | + | |
1374 | - | v:Destroy() |
1374 | + | |
1375 | local xs, ys, zs = x + x, y + y, z + z | |
1376 | - | --draw(points,definition) |
1376 | + | |
1377 | - | if Debounces.CanAttack == false then |
1377 | + | |
1378 | - | Debounces.CanAttack = true |
1378 | + | |
1379 | - | Debounces.NoIdl = false |
1379 | + | |
1380 | - | Debounces.on = false |
1380 | + | |
1381 | local yz = y * zs | |
1382 | local zz = z * zs | |
1383 | - | ---------------------------------------------------- |
1383 | + | |
1384 | - | ---------------------------------------------------- |
1384 | + | |
1385 | - | pt = {6.6, 6.8, 7, 7.2, 7.4} |
1385 | + | |
1386 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1387 | - | if key == "q" then |
1387 | + | |
1388 | - | if Debounces.CanJoke == true then |
1388 | + | |
1389 | - | Debounces.CanJoke = false |
1389 | + | |
1390 | - | u = Instance.new("Sound",char) |
1390 | + | |
1391 | - | u.SoundId = "http://www.roblox.com/asset/?id=261303790" |
1391 | + | |
1392 | - | u.Pitch = pt[math.random(1,#pt)] |
1392 | + | |
1393 | - | u.Volume = 0.3 |
1393 | + | |
1394 | - | u2 = Instance.new("Sound",char) |
1394 | + | |
1395 | - | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" |
1395 | + | |
1396 | - | u2.Pitch = u.Pitch |
1396 | + | |
1397 | - | u2.Volume = 0.3 |
1397 | + | |
1398 | - | u3 = Instance.new("Sound",char) |
1398 | + | |
1399 | - | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" |
1399 | + | |
1400 | - | u3.Pitch = u.Pitch |
1400 | + | |
1401 | - | u3.Volume = 0.3 |
1401 | + | |
1402 | - | wait(.01) |
1402 | + | |
1403 | - | u:Play() |
1403 | + | |
1404 | - | u2:Play() |
1404 | + | |
1405 | - | u3:Play() |
1405 | + | |
1406 | - | wait(1.5) |
1406 | + | |
1407 | - | u:Destroy() |
1407 | + | |
1408 | - | u2:Destroy() |
1408 | + | |
1409 | - | u3:Destroy() |
1409 | + | |
1410 | - | if Debounces.CanJoke == false then |
1410 | + | |
1411 | - | Debounces.CanJoke = true |
1411 | + | |
1412 | - | end |
1412 | + | |
1413 | local Create = RbxUtility.Create | |
1414 | ||
1415 | ------------------------------------------------------- | |
1416 | - | ---------------------------------------------------- |
1416 | + | |
1417 | - | ---------------------------------------------------- |
1417 | + | |
1418 | - | ---------------------------------------------------- |
1418 | + | |
1419 | - | Grab = false |
1419 | + | |
1420 | return | |
1421 | - | if key == "g" then |
1421 | + | |
1422 | - | Debounces.on = true |
1422 | + | |
1423 | - | Debounces.NoIdl = true |
1423 | + | |
1424 | - | Debounces.ks = true |
1424 | + | |
1425 | - | if Grab == false then |
1425 | + | |
1426 | - | gp = nil |
1426 | + | |
1427 | - | for i = 1, 20 do |
1427 | + | |
1428 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) |
1428 | + | |
1429 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1429 | + | |
1430 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) |
1430 | + | |
1431 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1431 | + | |
1432 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) |
1432 | + | |
1433 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1433 | + | |
1434 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) |
1434 | + | |
1435 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1435 | + | |
1436 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) |
1436 | + | |
1437 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1437 | + | |
1438 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) |
1438 | + | |
1439 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1439 | + | |
1440 | - | if Debounces.on == false then break end |
1440 | + | |
1441 | - | fat.Event:wait() |
1441 | + | |
1442 | local c = Create("ObjectValue"){ | |
1443 | - | con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit) |
1443 | + | |
1444 | - | ht = hit.Parent |
1444 | + | |
1445 | - | for i,v in pairs(ht:GetChildren()) do |
1445 | + | |
1446 | - | if v:IsA("Part") then |
1446 | + | |
1447 | - | v.CanCollide = false |
1447 | + | |
1448 | - | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) |
1448 | + | |
1449 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1450 | end | |
1451 | - | hum1=ht:FindFirstChild('Humanoid') |
1451 | + | |
1452 | - | if hum1 ~= nil then |
1452 | + | |
1453 | - | if Debounces.ks==true then |
1453 | + | |
1454 | - | z = Instance.new("Sound",hed) |
1454 | + | |
1455 | - | z.SoundId = "rbxassetid://169380525" |
1455 | + | |
1456 | - | z.Volume = 1 |
1456 | + | |
1457 | - | z:Play() |
1457 | + | |
1458 | - | Debounces.ks=false |
1458 | + | |
1459 | print(block.Value) | |
1460 | - | hum1.PlatformStand=true |
1460 | + | |
1461 | - | hum1:ChangeState'Physics' |
1461 | + | |
1462 | - | gp = ht |
1462 | + | |
1463 | - | Grab = true |
1463 | + | |
1464 | - | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0)) |
1464 | + | |
1465 | - | asd.Parent = larm |
1465 | + | |
1466 | - | asd.Name = "asd" |
1466 | + | |
1467 | - | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) |
1467 | + | |
1468 | - | stanceToggle = "Grabbed" |
1468 | + | |
1469 | - | --[[elseif hum1 == nil then |
1469 | + | |
1470 | - | con1:disconnect() |
1470 | + | |
1471 | - | wait() return]]-- |
1471 | + | |
1472 | hum.PlatformStand = true | |
1473 | - | end) |
1473 | + | |
1474 | - | for i = 1, 20 do |
1474 | + | |
1475 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) |
1475 | + | |
1476 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1476 | + | |
1477 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) |
1477 | + | |
1478 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1478 | + | |
1479 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) |
1479 | + | |
1480 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1480 | + | |
1481 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) |
1481 | + | |
1482 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1482 | + | |
1483 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) |
1483 | + | |
1484 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1484 | + | |
1485 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) |
1485 | + | |
1486 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1486 | + | |
1487 | - | if Debounces.on == false then break end |
1487 | + | |
1488 | - | fat.Event:wait() |
1488 | + | |
1489 | } | |
1490 | - | con1:disconnect() |
1490 | + | |
1491 | - | Debounces.on = false |
1491 | + | |
1492 | - | Debounces.NoIdl = false |
1492 | + | |
1493 | - | elseif Grab == true then |
1493 | + | |
1494 | - | Grab = false |
1494 | + | |
1495 | - | --[[for i = 1, 16 do |
1495 | + | |
1496 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) |
1496 | + | |
1497 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) |
1497 | + | |
1498 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) |
1498 | + | |
1499 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) |
1499 | + | |
1500 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) |
1500 | + | |
1501 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) |
1501 | + | |
1502 | - | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) |
1502 | + | |
1503 | - | if Debounces.on == false then end |
1503 | + | |
1504 | - | rs:wait() |
1504 | + | |
1505 | - | end]]-- |
1505 | + | |
1506 | - | for i = 1, 16 do |
1506 | + | |
1507 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3) |
1507 | + | |
1508 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5) |
1508 | + | |
1509 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3) |
1509 | + | |
1510 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5) |
1510 | + | |
1511 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) |
1511 | + | |
1512 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1512 | + | |
1513 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3) |
1513 | + | |
1514 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1514 | + | |
1515 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) |
1515 | + | |
1516 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) |
1516 | + | |
1517 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) |
1517 | + | |
1518 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1518 | + | |
1519 | - | if Debounces.on == false then end |
1519 | + | |
1520 | - | rs:wait() |
1520 | + | |
1521 | Parent = hit, | |
1522 | - | for i = 1, 12 do |
1522 | + | |
1523 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6) |
1523 | + | |
1524 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1524 | + | |
1525 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6) |
1525 | + | |
1526 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1526 | + | |
1527 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6) |
1527 | + | |
1528 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1528 | + | |
1529 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6) |
1529 | + | |
1530 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5) |
1530 | + | |
1531 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6) |
1531 | + | |
1532 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) |
1532 | + | |
1533 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6) |
1533 | + | |
1534 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4) |
1534 | + | |
1535 | - | if Debounces.on == false then end |
1535 | + | |
1536 | - | rs:wait() |
1536 | + | |
1537 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1538 | - | Slam() |
1538 | + | |
1539 | - | if gp ~= nil then |
1539 | + | |
1540 | - | for i,v in pairs(larm:GetChildren()) do |
1540 | + | |
1541 | - | if v.Name == "asd" and v:IsA("Weld") then |
1541 | + | |
1542 | - | v:Remove() |
1542 | + | |
1543 | P = 20e+003, | |
1544 | - | if v:IsA("Part") then |
1544 | + | |
1545 | - | v.CanCollide = true |
1545 | + | |
1546 | - | v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1) |
1546 | + | |
1547 | hit.Parent.Torso.Anchored = true | |
1548 | coroutine.resume(coroutine.create(function(Part) | |
1549 | swait(1.5) | |
1550 | - | stanceToggle = "Idle1" |
1550 | + | |
1551 | - | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) |
1551 | + | |
1552 | - | bv.maxForce = Vector3.new(400000, 400000, 400000) |
1552 | + | |
1553 | - | bv.P = 125000 |
1553 | + | |
1554 | - | bv.velocity = char.Head.CFrame.lookVector * 200]]-- |
1554 | + | |
1555 | - | ht=nil |
1555 | + | |
1556 | - | Debounces.on = false |
1556 | + | |
1557 | - | Debounces.NoIdl = false |
1557 | + | |
1558 | - | elseif ht == nil then wait() |
1558 | + | |
1559 | - | Grab = false |
1559 | + | |
1560 | - | Debounces.on = false |
1560 | + | |
1561 | - | Debounces.NoIdl = false |
1561 | + | |
1562 | Name = "creator", | |
1563 | Value = Player, | |
1564 | Parent = h, | |
1565 | - | ---------------------------------------------------- |
1565 | + | |
1566 | - | Change = false |
1566 | + | |
1567 | end | |
1568 | - | if key == "n" then |
1568 | + | |
1569 | - | if Change == false then |
1569 | + | |
1570 | - | Change = true |
1570 | + | |
1571 | - | stanceToggle = "Idle2" |
1571 | + | |
1572 | - | elseif Change == true then |
1572 | + | |
1573 | - | Change = false |
1573 | + | |
1574 | - | stanceToggle = "Idle1" |
1574 | + | |
1575 | ------------------------------------------------------- | |
1576 | function ShowDamage(Pos, Text, Time, Color) | |
1577 | local Rate = (1 / 30) | |
1578 | - | ---------------------------------------------------- |
1578 | + | |
1579 | local Text = (Text or "") | |
1580 | - | if string.byte(key) == 52 then |
1580 | + | |
1581 | - | Swing = 2 |
1581 | + | |
1582 | - | char.Humanoid.WalkSpeed = 28 |
1582 | + | |
1583 | EffectPart.Anchored = true | |
1584 | local BillboardGui = Create("BillboardGui"){ | |
1585 | Size = UDim2.new(3, 0, 3, 0), | |
1586 | - | if string.byte(key) == 52 then |
1586 | + | |
1587 | - | Swing = 1 |
1587 | + | |
1588 | - | char.Humanoid.WalkSpeed = 16 |
1588 | + | |
1589 | local TextLabel = Create("TextLabel"){ | |
1590 | BackgroundTransparency = 1, | |
1591 | - | local mouse2 = Player:GetMouse() |
1591 | + | |
1592 | - | local running = false |
1592 | + | |
1593 | Font = "Bodoni", | |
1594 | - | mouse2.KeyDown:connect(function(key) -- Run function |
1594 | + | |
1595 | - | if key == "e" then |
1595 | + | |
1596 | - | running = true |
1596 | + | |
1597 | - | local keyConnection = mouse.KeyUp:connect(function(key) |
1597 | + | |
1598 | - | if string.byte(key) == 48 then |
1598 | + | |
1599 | - | running = false |
1599 | + | |
1600 | EffectPart.Parent = game:GetService("Workspace") | |
1601 | delay(0, function() | |
1602 | - | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30 |
1602 | + | |
1603 | for Frame = 1, Frames do | |
1604 | wait(Rate) | |
1605 | local Percent = (Frame / Frames) | |
1606 | - | mouse2.KeyUp:connect(function(key) |
1606 | + | |
1607 | - | if key == "e" then |
1607 | + | |
1608 | - | running = false |
1608 | + | |
1609 | - | Character.Humanoid.WalkSpeed = 16 |
1609 | + | |
1610 | EffectPart:Destroy() | |
1611 | end | |
1612 | - | function Ban() |
1612 | + | |
1613 | - | Debounces.on = true |
1613 | + | |
1614 | - | Debounces.NoIdl = true |
1614 | + | |
1615 | - | Debounces.ks = true |
1615 | + | |
1616 | - | local hitbox = Instance.new("Part",banh) |
1616 | + | |
1617 | - | hitbox.Name = "HurtBox" |
1617 | + | |
1618 | - | hitbox.Size = Vector3.new(2.09, 3.4, 1.8) |
1618 | + | |
1619 | - | hitbox.Transparency = 1 |
1619 | + | |
1620 | - | local hitboxwe = Instance.new("Weld",hitbox) |
1620 | + | |
1621 | - | hitboxwe.Part0 = hitbox |
1621 | + | |
1622 | - | hitboxwe.Part1 = banh |
1622 | + | |
1623 | - | hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908) |
1623 | + | |
1624 | - | function onTouched(part) |
1624 | + | |
1625 | - | local human = part.Parent:FindFirstChildOfClass("Humanoid") |
1625 | + | |
1626 | - | if human then |
1626 | + | |
1627 | - | human.Parent:Destroy() |
1627 | + | |
1628 | - | ban2:Play() |
1628 | + | |
1629 | - | wait(1.4) |
1629 | + | |
1630 | - | ban:Play() |
1630 | + | |
1631 | - | wait(1.2) |
1631 | + | |
1632 | - | omg:Play() |
1632 | + | |
1633 | - | wait(2.6) |
1633 | + | |
1634 | - | scream:Play() |
1634 | + | |
1635 | - | wait(4.6) |
1635 | + | |
1636 | - | scream:Stop() |
1636 | + | |
1637 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1638 | local Part = Create("Part")({ | |
1639 | - | hitbox.Touched:connect(onTouched) |
1639 | + | |
1640 | - | for i = 0,1 , 0.09 do |
1640 | + | |
1641 | - | banw.C0 = banw.C0:lerp(CFrame.new(0.0185546875, -1.99783754, -0.149715185, -0.997520864, 0.00503101526, 0.0701895654, -0.0643144846, -0.469972789, -0.880334616, 0.0285583287, -0.882666826, 0.469131112),i) |
1641 | + | |
1642 | CanCollide = false, | |
1643 | Locked = true, | |
1644 | - | hitbox:Destroy() |
1644 | + | |
1645 | - | banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978) |
1645 | + | |
1646 | - | Debounces.on = false |
1646 | + | |
1647 | - | Debounces.NoIdl = false |
1647 | + | |
1648 | - | Debounces.ks = false |
1648 | + | |
1649 | RemoveOutlines(Part) | |
1650 | - | mouse.Button1Down:connect(Ban) |
1650 | + | |
1651 | - | ---------------------------------------------------- |
1651 | + | |
1652 | }, | |
1653 | - | jump = false |
1653 | + | |
1654 | - | rs:connect(function() |
1654 | + | |
1655 | - | if char.Humanoid.Jump == true then |
1655 | + | |
1656 | - | jump = true |
1656 | + | |
1657 | Offset = OffSet, | |
1658 | - | jump = false |
1658 | + | |
1659 | }) | |
1660 | - | char.Humanoid.FreeFalling:connect(function(f) |
1660 | + | |
1661 | - | if f then |
1661 | + | |
1662 | - | ffing = true |
1662 | + | |
1663 | end | |
1664 | - | ffing = false |
1664 | + | |
1665 | end | |
1666 | }, | |
1667 | Mesh = { | |
1668 | - | if jump == true then |
1668 | + | |
1669 | - | animpose = "Jumping" |
1669 | + | |
1670 | - | elseif ffing == true then |
1670 | + | |
1671 | - | animpose = "Freefalling" |
1671 | + | |
1672 | - | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then |
1672 | + | |
1673 | - | animpose = "Idle" |
1673 | + | |
1674 | - | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then |
1674 | + | |
1675 | - | animpose = "Walking" |
1675 | + | |
1676 | - | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then |
1676 | + | |
1677 | - | animpose = "Running" |
1677 | + | |
1678 | return Msh | |
1679 | - | RightLeg = CFrame.new(0.5,-1,0) |
1679 | + | |
1680 | - | LeftLeg = CFrame.new(-0.5,-1,0) |
1680 | + | |
1681 | Weld = { | |
1682 | - | lefth = (torso.CFrame*LeftLeg) |
1682 | + | |
1683 | - | righth = (torso.CFrame*RightLeg) |
1683 | + | |
1684 | Parent = Parent, | |
1685 | - | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) |
1685 | + | |
1686 | Part1 = Part1, | |
1687 | - | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) |
1687 | + | |
1688 | C1 = C1 | |
1689 | - | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) |
1689 | + | |
1690 | - | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) |
1690 | + | |
1691 | - | if animpose ~= lastanimpose then |
1691 | + | |
1692 | - | sine = 0 |
1692 | + | |
1693 | - | if Debounces.NoIdl == false then |
1693 | + | |
1694 | - | if stanceToggle == "Idle1" then |
1694 | + | |
1695 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) |
1695 | + | |
1696 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) |
1696 | + | |
1697 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) |
1697 | + | |
1698 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) |
1698 | + | |
1699 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) |
1699 | + | |
1700 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) |
1700 | + | |
1701 | - | elseif stanceToggle == "Idle2" then |
1701 | + | |
1702 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3) |
1702 | + | |
1703 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3) |
1703 | + | |
1704 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2) |
1704 | + | |
1705 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2) |
1705 | + | |
1706 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2) |
1706 | + | |
1707 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2) |
1707 | + | |
1708 | ParticleEmitter = { | |
1709 | - | fat.Event:wait() |
1709 | + | |
1710 | local fp = Create("ParticleEmitter")({ | |
1711 | Parent = Parent, | |
1712 | Color = ColorSequence.new(Color1, Color2), | |
1713 | - | lastanimpose = animpose |
1713 | + | |
1714 | - | if Debounces.NoIdl == false then |
1714 | + | |
1715 | - | if animpose == "Idle" then |
1715 | + | |
1716 | - | change = 0.5 |
1716 | + | |
1717 | - | if stanceToggle == "Idle1" then |
1717 | + | |
1718 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1718 | + | |
1719 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3) |
1719 | + | |
1720 | LockedToPart = LockedToPart, | |
1721 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) |
1721 | + | |
1722 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1722 | + | |
1723 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) |
1723 | + | |
1724 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1724 | + | |
1725 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) |
1725 | + | |
1726 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) |
1726 | + | |
1727 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) |
1727 | + | |
1728 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) |
1728 | + | |
1729 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) |
1729 | + | |
1730 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) |
1730 | + | |
1731 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) |
1731 | + | |
1732 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) |
1732 | + | |
1733 | - | elseif stanceToggle == "Idle2" then |
1733 | + | |
1734 | } | |
1735 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1735 | + | |
1736 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) |
1736 | + | |
1737 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) |
1737 | + | |
1738 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) |
1738 | + | |
1739 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) |
1739 | + | |
1740 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) |
1740 | + | |
1741 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) |
1741 | + | |
1742 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) |
1742 | + | |
1743 | - | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) |
1743 | + | |
1744 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1744 | + | |
1745 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) |
1745 | + | |
1746 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) |
1746 | + | |
1747 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) |
1747 | + | |
1748 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) |
1748 | + | |
1749 | - | elseif stanceToggle == "Grabbed" then |
1749 | + | |
1750 | - | grab = true |
1750 | + | |
1751 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1751 | + | |
1752 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1752 | + | |
1753 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) |
1753 | + | |
1754 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) |
1754 | + | |
1755 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) |
1755 | + | |
1756 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) |
1756 | + | |
1757 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) |
1757 | + | |
1758 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1758 | + | |
1759 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) |
1759 | + | |
1760 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) |
1760 | + | |
1761 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) |
1761 | + | |
1762 | - | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1762 | + | |
1763 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) |
1763 | + | |
1764 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1764 | + | |
1765 | end | |
1766 | - | elseif animpose == "Walking" then |
1766 | + | |
1767 | - | if stanceToggle == "Grabbed" then |
1767 | + | |
1768 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1768 | + | |
1769 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1769 | + | |
1770 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) |
1770 | + | |
1771 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1771 | + | |
1772 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3) |
1772 | + | |
1773 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) |
1773 | + | |
1774 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) |
1774 | + | |
1775 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) |
1775 | + | |
1776 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) |
1776 | + | |
1777 | - | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) |
1777 | + | |
1778 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) |
1778 | + | |
1779 | - | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) |
1779 | + | |
1780 | - | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1780 | + | |
1781 | - | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) |
1781 | + | |
1782 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1782 | + | |
1783 | - | elseif stanceToggle ~= "Grabbed" then |
1783 | + | |
1784 | - | change = 1 |
1784 | + | |
1785 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1785 | + | |
1786 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1786 | + | |
1787 | - | |
1787 | + | |
1788 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) |
1788 | + | |
1789 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1789 | + | |
1790 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) |
1790 | + | |
1791 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) |
1791 | + | |
1792 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) |
1792 | + | |
1793 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) |
1793 | + | |
1794 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) |
1794 | + | |
1795 | - | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) |
1795 | + | |
1796 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) |
1796 | + | |
1797 | - | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) |
1797 | + | |
1798 | - | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) |
1798 | + | |
1799 | - | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1799 | + | |
1800 | - | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) |
1800 | + | |
1801 | - | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) |
1801 | + | |
1802 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) |
1802 | + | |
1803 | "Block2", | |
1804 | - | elseif animpose == "Running" then |
1804 | + | |
1805 | x3, | |
1806 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1806 | + | |
1807 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1807 | + | |
1808 | msh | |
1809 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2) |
1809 | + | |
1810 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) |
1810 | + | |
1811 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2) |
1811 | + | |
1812 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1812 | + | |
1813 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2) |
1813 | + | |
1814 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5) |
1814 | + | |
1815 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2) |
1815 | + | |
1816 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) |
1816 | + | |
1817 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) |
1817 | + | |
1818 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1818 | + | |
1819 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) |
1819 | + | |
1820 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1820 | + | |
1821 | - | elseif animpose == "Jumping" then |
1821 | + | |
1822 | }, | |
1823 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1823 | + | |
1824 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1824 | + | |
1825 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2) |
1825 | + | |
1826 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) |
1826 | + | |
1827 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) |
1827 | + | |
1828 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1828 | + | |
1829 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) |
1829 | + | |
1830 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) |
1830 | + | |
1831 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) |
1831 | + | |
1832 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) |
1832 | + | |
1833 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1833 | + | |
1834 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) |
1834 | + | |
1835 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1835 | + | |
1836 | - | elseif animpose == "Freefalling" then |
1836 | + | |
1837 | msh | |
1838 | - | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) |
1838 | + | |
1839 | - | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) |
1839 | + | |
1840 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2) |
1840 | + | |
1841 | - | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) |
1841 | + | |
1842 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2) |
1842 | + | |
1843 | - | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) |
1843 | + | |
1844 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) |
1844 | + | |
1845 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) |
1845 | + | |
1846 | - | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) |
1846 | + | |
1847 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) |
1847 | + | |
1848 | - | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1848 | + | |
1849 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) |
1849 | + | |
1850 | - | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) |
1850 | + | |
1851 | delay, | |
1852 | x3, | |
1853 | y3, | |
1854 | - | hum.MaxHealth = math.huge |
1854 | + | |
1855 | - | wait(3) |
1855 | + | |
1856 | - | hum.Health = math.huge |
1856 | + | |
1857 | end | |
1858 | - | coroutine.wrap(function() |
1858 | + | |
1859 | - | wait(0.1) |
1859 | + | |
1860 | - | game.Base.CanCollide = false |
1860 | + | |
1861 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1862 | prt.Anchored = true | |
1863 | prt.CFrame = cframe | |
1864 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
1865 | game:GetService("Debris"):AddItem(prt, 10) | |
1866 | table.insert(Effects, { | |
1867 | prt, | |
1868 | "Cylinder", | |
1869 | delay, | |
1870 | x3 / 60, | |
1871 | y3 / 60, | |
1872 | z3 / 60, | |
1873 | msh | |
1874 | }) | |
1875 | end | |
1876 | }, | |
1877 | Ring = { | |
1878 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1879 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1880 | prt.Anchored = true | |
1881 | prt.CFrame = cframe | |
1882 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1883 | game:GetService("Debris"):AddItem(prt, 10) | |
1884 | table.insert(Effects, { | |
1885 | prt, | |
1886 | "Cylinder", | |
1887 | delay, | |
1888 | x3, | |
1889 | y3, | |
1890 | z3, | |
1891 | msh | |
1892 | }) | |
1893 | end | |
1894 | }, | |
1895 | Break = { | |
1896 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1897 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1898 | prt.Anchored = true | |
1899 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1900 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1901 | local num = math.random(10, 50) / 1000 | |
1902 | game:GetService("Debris"):AddItem(prt, 10) | |
1903 | table.insert(Effects, { | |
1904 | prt, | |
1905 | "Shatter", | |
1906 | num, | |
1907 | prt.CFrame, | |
1908 | math.random() - math.random(), | |
1909 | 0, | |
1910 | math.random(50, 100) / 100 | |
1911 | }) | |
1912 | end | |
1913 | }, | |
1914 | Spiral = { | |
1915 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1916 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1917 | prt.Anchored = true | |
1918 | prt.CFrame = cframe | |
1919 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1920 | game:GetService("Debris"):AddItem(prt, 10) | |
1921 | table.insert(Effects, { | |
1922 | prt, | |
1923 | "Cylinder", | |
1924 | delay, | |
1925 | x3, | |
1926 | y3, | |
1927 | z3, | |
1928 | msh | |
1929 | }) | |
1930 | end | |
1931 | }, | |
1932 | Push = { | |
1933 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1934 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1935 | prt.Anchored = true | |
1936 | prt.CFrame = cframe | |
1937 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1938 | game:GetService("Debris"):AddItem(prt, 10) | |
1939 | table.insert(Effects, { | |
1940 | prt, | |
1941 | "Cylinder", | |
1942 | delay, | |
1943 | x3, | |
1944 | y3, | |
1945 | z3, | |
1946 | msh | |
1947 | }) | |
1948 | end | |
1949 | } | |
1950 | } | |
1951 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
1952 | local fp = IT("Part") | |
1953 | fp.formFactor = formfactor | |
1954 | fp.Parent = parent | |
1955 | fp.Reflectance = reflectance | |
1956 | fp.Transparency = transparency | |
1957 | fp.CanCollide = false | |
1958 | fp.Locked = true | |
1959 | fp.BrickColor = brickcolor | |
1960 | fp.Name = name | |
1961 | fp.Size = size | |
1962 | fp.Position = tors.Position | |
1963 | RemoveOutlines(fp) | |
1964 | fp.Material = "SmoothPlastic" | |
1965 | fp:BreakJoints() | |
1966 | return fp | |
1967 | end | |
1968 | ||
1969 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1970 | local mesh = IT(Mesh) | |
1971 | mesh.Parent = part | |
1972 | if Mesh == "SpecialMesh" then | |
1973 | mesh.MeshType = meshtype | |
1974 | if meshid ~= "nil" then | |
1975 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
1976 | end | |
1977 | end | |
1978 | mesh.Offset = offset | |
1979 | mesh.Scale = scale | |
1980 | return mesh | |
1981 | end | |
1982 | ||
1983 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1984 | local type = type | |
1985 | local rng = Instance.new("Part", char) | |
1986 | rng.Anchored = true | |
1987 | rng.BrickColor = color | |
1988 | rng.CanCollide = false | |
1989 | rng.FormFactor = 3 | |
1990 | rng.Name = "Ring" | |
1991 | rng.Material = "Neon" | |
1992 | rng.Size = Vector3.new(1, 1, 1) | |
1993 | rng.Transparency = 0 | |
1994 | rng.TopSurface = 0 | |
1995 | rng.BottomSurface = 0 | |
1996 | rng.CFrame = pos | |
1997 | local rngm = Instance.new("SpecialMesh", rng) | |
1998 | rngm.MeshType = MType | |
1999 | rngm.Scale = scale | |
2000 | local scaler2 = 1 | |
2001 | if type == "Add" then | |
2002 | scaler2 = 1 * value | |
2003 | elseif type == "Divide" then | |
2004 | scaler2 = 1 / value | |
2005 | end | |
2006 | coroutine.resume(coroutine.create(function() | |
2007 | for i = 0, 10 / bonuspeed, 0.1 do | |
2008 | swait() | |
2009 | if type == "Add" then | |
2010 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2011 | elseif type == "Divide" then | |
2012 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2013 | end | |
2014 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2015 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
2016 | end | |
2017 | rng:Destroy() | |
2018 | end)) | |
2019 | end | |
2020 | ||
2021 | function Eviscerate(dude) | |
2022 | if dude.Name ~= char then | |
2023 | local bgf = IT("BodyGyro", dude.Head) | |
2024 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
2025 | local val = IT("BoolValue", dude) | |
2026 | val.Name = "IsHit" | |
2027 | local ds = coroutine.wrap(function() | |
2028 | dude:WaitForChild("Head"):BreakJoints() | |
2029 | wait(0.5) | |
2030 | target = nil | |
2031 | coroutine.resume(coroutine.create(function() | |
2032 | for i, v in pairs(dude:GetChildren()) do | |
2033 | if v:IsA("Accessory") then | |
2034 | v:Destroy() | |
2035 | end | |
2036 | if v:IsA("Humanoid") then | |
2037 | v:Destroy() | |
2038 | end | |
2039 | if v:IsA("CharacterMesh") then | |
2040 | v:Destroy() | |
2041 | end | |
2042 | if v:IsA("Model") then | |
2043 | v:Destroy() | |
2044 | end | |
2045 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2046 | for x, o in pairs(v:GetChildren()) do | |
2047 | if o:IsA("Decal") then | |
2048 | o:Destroy() | |
2049 | end | |
2050 | end | |
2051 | coroutine.resume(coroutine.create(function() | |
2052 | v.Material = "Neon" | |
2053 | v.CanCollide = false | |
2054 | local PartEmmit1 = IT("ParticleEmitter", v) | |
2055 | PartEmmit1.LightEmission = 1 | |
2056 | PartEmmit1.Texture = "rbxassetid://284205403" | |
2057 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
2058 | PartEmmit1.Rate = 150 | |
2059 | PartEmmit1.Lifetime = NumberRange.new(1) | |
2060 | PartEmmit1.Size = NumberSequence.new({ | |
2061 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
2062 | NumberSequenceKeypoint.new(1, 0, 0) | |
2063 | }) | |
2064 | PartEmmit1.Transparency = NumberSequence.new({ | |
2065 | NumberSequenceKeypoint.new(0, 0, 0), | |
2066 | NumberSequenceKeypoint.new(1, 1, 0) | |
2067 | }) | |
2068 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
2069 | PartEmmit1.VelocitySpread = 30000 | |
2070 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
2071 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
2072 | local BodPoss = IT("BodyPosition", v) | |
2073 | BodPoss.P = 3000 | |
2074 | BodPoss.D = 1000 | |
2075 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2076 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
2077 | v.Color = maincolor.Color | |
2078 | coroutine.resume(coroutine.create(function() | |
2079 | for i = 0, 49 do | |
2080 | swait(1) | |
2081 | v.Transparency = v.Transparency + 0.08 | |
2082 | end | |
2083 | wait(0.5) | |
2084 | PartEmmit1.Enabled = false | |
2085 | wait(3) | |
2086 | v:Destroy() | |
2087 | dude:Destroy() | |
2088 | end)) | |
2089 | end)) | |
2090 | end | |
2091 | end | |
2092 | end)) | |
2093 | end) | |
2094 | ds() | |
2095 | end | |
2096 | end | |
2097 | ||
2098 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2099 | if SinglePlayer then | |
2100 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
2101 | end | |
2102 | local List = {} | |
2103 | for i, v in pairs(workspace:GetChildren()) do | |
2104 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
2105 | table.insert(List, v) | |
2106 | end | |
2107 | end | |
2108 | return List | |
2109 | end | |
2110 | ||
2111 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
2112 | local type = type | |
2113 | local rng = Instance.new("Part", char) | |
2114 | rng.Anchored = true | |
2115 | rng.BrickColor = color | |
2116 | rng.CanCollide = false | |
2117 | rng.FormFactor = 3 | |
2118 | rng.Name = "Ring" | |
2119 | rng.Material = "Neon" | |
2120 | rng.Size = Vector3.new(1, 1, 1) | |
2121 | rng.Transparency = 0 | |
2122 | rng.TopSurface = 0 | |
2123 | rng.BottomSurface = 0 | |
2124 | rng.CFrame = pos | |
2125 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2126 | local rngm = Instance.new("SpecialMesh", rng) | |
2127 | rngm.MeshType = MType | |
2128 | rngm.Scale = Vector3.new(x1, y1, z1) | |
2129 | local scaler2 = 1 | |
2130 | local speeder = FastSpeed | |
2131 | if type == "Add" then | |
2132 | scaler2 = 1 * value | |
2133 | elseif type == "Divide" then | |
2134 | scaler2 = 1 / value | |
2135 | end | |
2136 | coroutine.resume(coroutine.create(function() | |
2137 | for i = 0, 10 / bonuspeed, 0.1 do | |
2138 | swait() | |
2139 | if type == "Add" then | |
2140 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2141 | elseif type == "Divide" then | |
2142 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2143 | end | |
2144 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2145 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2146 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2147 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2148 | end | |
2149 | rng:Destroy() | |
2150 | end)) | |
2151 | end | |
2152 | ||
2153 | function SoulSteal(dude) | |
2154 | if dude.Name ~= char then | |
2155 | local bgf = IT("BodyGyro", dude.Head) | |
2156 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
2157 | local val = IT("BoolValue", dude) | |
2158 | val.Name = "IsHit" | |
2159 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
2160 | local soulst = coroutine.wrap(function() | |
2161 | local soul = Instance.new("Part",dude) | |
2162 | soul.Size = Vector3.new(1,1,1) | |
2163 | soul.CanCollide = false | |
2164 | soul.Anchored = false | |
2165 | soul.Position = torso.Position | |
2166 | soul.Transparency = 1 | |
2167 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
2168 | PartEmmit1.LightEmission = 1 | |
2169 | PartEmmit1.Texture = "rbxassetid://569507414" | |
2170 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
2171 | PartEmmit1.Rate = 250 | |
2172 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
2173 | PartEmmit1.Size = NumberSequence.new({ | |
2174 | NumberSequenceKeypoint.new(0, 1, 0), | |
2175 | NumberSequenceKeypoint.new(1, 0, 0) | |
2176 | }) | |
2177 | PartEmmit1.Transparency = NumberSequence.new({ | |
2178 | NumberSequenceKeypoint.new(0, 0, 0), | |
2179 | NumberSequenceKeypoint.new(1, 1, 0) | |
2180 | }) | |
2181 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
2182 | PartEmmit1.VelocitySpread = 30000 | |
2183 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
2184 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
2185 | local BodPoss = IT("BodyPosition", soul) | |
2186 | BodPoss.P = 3000 | |
2187 | BodPoss.D = 1000 | |
2188 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2189 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
2190 | wait(1.6) | |
2191 | soul.Touched:connect(function(hit) | |
2192 | if hit.Parent == char then | |
2193 | soul:Destroy() | |
2194 | end | |
2195 | end) | |
2196 | wait(1.2) | |
2197 | while soul do | |
2198 | swait() | |
2199 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
2200 | BodPoss.Position = tors.Position | |
2201 | end | |
2202 | end) | |
2203 | soulst() | |
2204 | end | |
2205 | end | |
2206 | function FaceMouse() | |
2207 | local Cam = workspace.CurrentCamera | |
2208 | return { | |
2209 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
2210 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2211 | } | |
2212 | end | |
2213 | ------------------------------------------------------- | |
2214 | --End Effect Function-- | |
2215 | ------------------------------------------------------- | |
2216 | function Cso(ID, PARENT, VOLUME, PITCH) | |
2217 | local NSound = nil | |
2218 | coroutine.resume(coroutine.create(function() | |
2219 | NSound = IT("Sound", PARENT) | |
2220 | NSound.Volume = VOLUME | |
2221 | NSound.Pitch = PITCH | |
2222 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
2223 | swait() | |
2224 | NSound:play() | |
2225 | game:GetService("Debris"):AddItem(NSound, 10) | |
2226 | end)) | |
2227 | return NSound | |
2228 | end | |
2229 | function CameraEnshaking(Length, Intensity) | |
2230 | coroutine.resume(coroutine.create(function() | |
2231 | local intensity = 1 * Intensity | |
2232 | local rotM = 0.01 * Intensity | |
2233 | for i = 0, Length, 0.1 do | |
2234 | swait() | |
2235 | intensity = intensity - 0.05 * Intensity / Length | |
2236 | rotM = rotM - 5.0E-4 * Intensity / Length | |
2237 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
2238 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
2239 | end | |
2240 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
2241 | end)) | |
2242 | end | |
2243 | function chatfunc(text, color) | |
2244 | local chat = coroutine.wrap(function() | |
2245 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
2246 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
2247 | end | |
2248 | local naeeym2 = Instance.new("BillboardGui", char) | |
2249 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
2250 | naeeym2.StudsOffset = Vector3.new(0, 5, 0) | |
2251 | naeeym2.Adornee = hed | |
2252 | naeeym2.Name = "TalkingBillBoard" | |
2253 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
2254 | tecks2.BackgroundTransparency = 1 | |
2255 | tecks2.BorderSizePixel = 0 | |
2256 | tecks2.Text = "" | |
2257 | tecks2.Font = "SciFi" | |
2258 | tecks2.TextSize = 30 | |
2259 | tecks2.TextStrokeTransparency = 0 | |
2260 | tecks2.TextColor3 = color | |
2261 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
2262 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
2263 | coroutine.resume(coroutine.create(function() | |
2264 | while true do | |
2265 | swait(1) | |
2266 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
2267 | tecks2.Rotation = math.random(-5, 5) | |
2268 | end | |
2269 | end)) | |
2270 | for i = 1, string.len(text) do | |
2271 | CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115) | |
2272 | tecks2.Text = string.sub(text, 1, i) | |
2273 | swait(1) | |
2274 | end | |
2275 | wait(1) | |
2276 | naeeym2:Destroy() | |
2277 | end) | |
2278 | chat() | |
2279 | end | |
2280 | ------------------------------------------------------- | |
2281 | --End Important Functions-- | |
2282 | ------------------------------------------------------- | |
2283 | ||
2284 | ||
2285 | ------------------------------------------------------- | |
2286 | --Start Customization-- | |
2287 | ------------------------------------------------------- | |
2288 | local Player_Size = 1 | |
2289 | if Player_Size ~= 1 then | |
2290 | root.Size = root.Size * Player_Size | |
2291 | tors.Size = tors.Size * Player_Size | |
2292 | hed.Size = hed.Size * Player_Size | |
2293 | ra.Size = ra.Size * Player_Size | |
2294 | la.Size = la.Size * Player_Size | |
2295 | rl.Size = rl.Size * Player_Size | |
2296 | ll.Size = ll.Size * Player_Size | |
2297 | ---------------------------------------------------------------------------------- | |
2298 | rootj.Parent = root | |
2299 | neck.Parent = tors | |
2300 | RW.Parent = tors | |
2301 | LW.Parent = tors | |
2302 | RH.Parent = tors | |
2303 | LH.Parent = tors | |
2304 | ---------------------------------------------------------------------------------- | |
2305 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
2306 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
2307 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
2308 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
2309 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
2310 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
2311 | ---------------------------------------------------------------------------------- | |
2312 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2313 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2314 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2315 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2316 | --hat.Parent = Character | |
2317 | end | |
2318 | ---------------------------------------------------------------------------------- | |
2319 | local SONG = 703597239 | |
2320 | local SONG2 = 853707984 | |
2321 | local Music = Instance.new("Sound",tors) | |
2322 | Music.Volume = 2.5 | |
2323 | Music.Looped = true | |
2324 | Music.Pitch = 1 --Pitcher | |
2325 | ---------------------------------------------------------------------------------- | |
2326 | local equipped = false | |
2327 | local idle = 0 | |
2328 | local change = 1 | |
2329 | local val = 0 | |
2330 | local toim = 0 | |
2331 | local idleanim = 0.4 | |
2332 | local sine = 0 | |
2333 | local Sit = 1 | |
2334 | ---------------------------------------------------------------------------------- | |
2335 | hum.WalkSpeed = 16 | |
2336 | hum.JumpPower = 57 | |
2337 | hum.Animator.Parent = nil | |
2338 | ---------------------------------------------------------------------------------- | |
2339 | local Blobby = Instance.new("Part", char) | |
2340 | Blobby.Name = "Blob" | |
2341 | Blobby.CanCollide = false | |
2342 | Blobby.BrickColor = BrickColor.new("Really black") | |
2343 | Blobby.Transparency = 0 | |
2344 | Blobby.Material = "Plastic" | |
2345 | Blobby.Size = Vector3.new(1, 1, 2) | |
2346 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
2347 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
2348 | ||
2349 | local Weld = Instance.new("Weld", Blobby) | |
2350 | Weld.Part0 = ra | |
2351 | Weld.Part1 = Blobby | |
2352 | Weld.C1 = CFrame.new(0, -2, 1.1) | |
2353 | Weld.C0 = CFrame.Angles(Rad(-86),0,0) | |
2354 | ||
2355 | local M2 = Instance.new("SpecialMesh") | |
2356 | M2.Parent = Blobby | |
2357 | M2.MeshId = "http://www.roblox.com/asset/?id=10604848" | |
2358 | M2.TextureId = "http://www.roblox.com/asset/?id=10605252" | |
2359 | M2.Scale = Vector3.new(1, 1, 1) | |
2360 | ||
2361 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
2362 | naeeym2.AlwaysOnTop = true | |
2363 | naeeym2.Size = UDim2.new(5,35,2,15) | |
2364 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
2365 | naeeym2.Adornee = hed | |
2366 | naeeym2.Name = "Name" | |
2367 | --naeeym2.PlayerToHideFrom = Player | |
2368 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2369 | tecks2.BackgroundTransparency = 1 | |
2370 | tecks2.TextScaled = true | |
2371 | tecks2.BorderSizePixel = 0 | |
2372 | tecks2.Text = "Fight Me" | |
2373 | tecks2.Font = Enum.Font.Bodoni | |
2374 | tecks2.TextSize = 30 | |
2375 | tecks2.TextStrokeTransparency = 0 | |
2376 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2377 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
2378 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2379 | tecks2.Parent = naeeym2]] | |
2380 | ------------------------------------------------------- | |
2381 | --End Customization-- | |
2382 | ------------------------------------------------------- | |
2383 | ||
2384 | ||
2385 | ------------------------------------------------------- | |
2386 | --Start Attacks N Stuff-- | |
2387 | ------------------------------------------------------- | |
2388 | function Ban() | |
2389 | attack = true | |
2390 | for i = 0, 2.6, 0.1 do | |
2391 | swait() | |
2392 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2) | |
2393 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2) | |
2394 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2) | |
2395 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2) | |
2396 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
2397 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2) | |
2398 | end | |
2399 | Cso("147722910", tors, 10, 1) | |
2400 | CameraEnshaking(2, 15) | |
2401 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2402 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2403 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2404 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
2405 | if v:FindFirstChild("Head") then | |
2406 | Eviscerate(v) | |
2407 | end | |
2408 | end | |
2409 | for i = 0, 3, 0.1 do | |
2410 | swait() | |
2411 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3) | |
2412 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3) | |
2413 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3) | |
2414 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
2415 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
2416 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3) | |
2417 | end | |
2418 | attack = false | |
2419 | end | |
2420 | function BigBan() | |
2421 | attack = true | |
2422 | Weld.C0 = CFrame.Angles(Rad(-90), Rad(-25), Rad(0)) | |
2423 | for i = 0, 3.6, 0.1 do | |
2424 | swait() | |
2425 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.2) | |
2426 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2427 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
2428 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
2429 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-.6), Rad(-45)), 0.2) | |
2430 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-6), Rad(45)), 0.2) | |
2431 | end | |
2432 | Cso("147722910", tors, 10, 1) | |
2433 | CameraEnshaking(2, 15) | |
2434 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2435 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2436 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2437 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 14.5)) do | |
2438 | if v:FindFirstChild("Head") then | |
2439 | Eviscerate(v) | |
2440 | end | |
2441 | end | |
2442 | for i = 0, 2.6, 0.1 do | |
2443 | swait() | |
2444 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(0)), 0.2) | |
2445 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2446 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
2447 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
2448 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2) | |
2449 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2) | |
2450 | end | |
2451 | Weld.C0 = CFrame.Angles(Rad(-86),0,0) | |
2452 | attack = false | |
2453 | end | |
2454 | function BANN() | |
2455 | attack = true | |
2456 | M2.Scale = Vector3.new(2, 2, 2) | |
2457 | for i = 0, 4.6, 0.1 do | |
2458 | swait() | |
2459 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2) | |
2460 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2) | |
2461 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
2462 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
2463 | RW.C0 = clerp(RW.C0, CF(.6* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
2464 | LW.C0 = clerp(LW.C0, CF(-.8* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(156), Rad(-.6), Rad(45)), 0.2) | |
2465 | end | |
2466 | Cso("147722910", char, 10, 1) | |
2467 | CameraEnshaking(2, 35) | |
2468 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2469 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2470 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2471 | Effects.Ring.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04) | |
2472 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04) | |
2473 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02) | |
2474 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01) | |
2475 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 19.5)) do | |
2476 | if v:FindFirstChild("Head") then | |
2477 | Eviscerate(v) | |
2478 | end | |
2479 | end | |
2480 | for i = 0, 3, 0.1 do | |
2481 | swait() | |
2482 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3) | |
2483 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3) | |
2484 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3) | |
2485 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
2486 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
2487 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3) | |
2488 | end | |
2489 | M2.Scale = Vector3.new(1, 1, 1) | |
2490 | attack = false | |
2491 | end | |
2492 | ------------------------------------------------------- | |
2493 | --End Attacks N Stuff-- | |
2494 | ------------------------------------------------------- | |
2495 | mouse.KeyDown:connect(function(key) | |
2496 | if string.byte(key) == 48 then | |
2497 | Swing = 2 | |
2498 | hum.WalkSpeed = 38.82 | |
2499 | end | |
2500 | end) | |
2501 | mouse.KeyUp:connect(function(key) | |
2502 | if string.byte(key) == 48 then | |
2503 | Swing = 1 | |
2504 | hum.WalkSpeed = 16 | |
2505 | end | |
2506 | end) | |
2507 | mouse.KeyDown:connect(function(key) | |
2508 | if attack == false then | |
2509 | if key == 'e' then | |
2510 | BigBan() | |
2511 | elseif key == 'r' then | |
2512 | BANN() | |
2513 | elseif key == 't' then | |
2514 | Cso("1450018171", hed, 10, 1) | |
2515 | end | |
2516 | end | |
2517 | end) | |
2518 | mouse.Button1Down:connect(function(key) | |
2519 | if attack == false then | |
2520 | Ban() | |
2521 | end | |
2522 | end) | |
2523 | ||
2524 | ||
2525 | ||
2526 | ||
2527 | ||
2528 | ||
2529 | ||
2530 | ------------------------------------------------------- | |
2531 | --Start Animations-- | |
2532 | ------------------------------------------------------- | |
2533 | while true do | |
2534 | swait() | |
2535 | sine = sine + change | |
2536 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2537 | local velderp = root.Velocity.y | |
2538 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2539 | if equipped == true or equipped == false then | |
2540 | if attack == false then | |
2541 | idle = idle + 1 | |
2542 | else | |
2543 | idle = 0 | |
2544 | end | |
2545 | --Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere") | |
2546 | if 1 < root.Velocity.y and hitfloor == nil then | |
2547 | Anim = "Jump" | |
2548 | if attack == false then | |
2549 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
2550 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2551 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2552 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2553 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
2554 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
2555 | end | |
2556 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2557 | Anim = "Fall" | |
2558 | if attack == false then | |
2559 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
2560 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2561 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2562 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2563 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
2564 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
2565 | end | |
2566 | elseif torvel < 1 and hitfloor ~= nil then | |
2567 | Anim = "Idle" | |
2568 | change = 1 | |
2569 | if attack == false then | |
2570 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2571 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2572 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2573 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2574 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(190), Rad(-.6), Rad(13)), 0.1) | |
2575 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1) | |
2576 | end | |
2577 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2578 | Anim = "Walk" | |
2579 | change = 1 | |
2580 | if attack == false then | |
2581 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
2582 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 6.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2583 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2584 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2585 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(190) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.1) | |
2586 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
2587 | end | |
2588 | elseif torvel >= 25 and hitfloor ~= nil then | |
2589 | Anim = "Sprint" | |
2590 | change = 1.35 | |
2591 | if attack == false then | |
2592 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
2593 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2594 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2595 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2596 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(215) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
2597 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-75) , Rad(8 * Cos(sine / 7)) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
2598 | end | |
2599 | end | |
2600 | end | |
2601 | Music.SoundId = "rbxassetid://"..SONG | |
2602 | Music.Looped = true | |
2603 | Music.Pitch = 1 | |
2604 | Music.Volume = 1.5 | |
2605 | Music.Parent = tors | |
2606 | Music:Resume() | |
2607 | if 0 < #Effects then | |
2608 | for e = 1, #Effects do | |
2609 | if Effects[e] ~= nil then | |
2610 | local Thing = Effects[e] | |
2611 | if Thing ~= nil then | |
2612 | local Part = Thing[1] | |
2613 | local Mode = Thing[2] | |
2614 | local Delay = Thing[3] | |
2615 | local IncX = Thing[4] | |
2616 | local IncY = Thing[5] | |
2617 | local IncZ = Thing[6] | |
2618 | if 1 >= Thing[1].Transparency then | |
2619 | if Thing[2] == "Block1" then | |
2620 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2621 | local Mesh = Thing[1].Mesh | |
2622 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2623 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2624 | elseif Thing[2] == "Block2" then | |
2625 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2626 | local Mesh = Thing[7] | |
2627 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2628 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2629 | elseif Thing[2] == "Block3" then | |
2630 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
2631 | local Mesh = Thing[7] | |
2632 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2633 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2634 | elseif Thing[2] == "Cylinder" then | |
2635 | local Mesh = Thing[1].Mesh | |
2636 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2637 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2638 | elseif Thing[2] == "Blood" then | |
2639 | local Mesh = Thing[7] | |
2640 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2641 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2642 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2643 | elseif Thing[2] == "Elec" then | |
2644 | local Mesh = Thing[1].Mesh | |
2645 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2646 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2647 | elseif Thing[2] == "Disappear" then | |
2648 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2649 | elseif Thing[2] == "Shatter" then | |
2650 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2651 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2652 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2653 | Thing[6] = Thing[6] + Thing[5] | |
2654 | end | |
2655 | else | |
2656 | Part.Parent = nil | |
2657 | table.remove(Effects, e) | |
2658 | end | |
2659 | end | |
2660 | end | |
2661 | end | |
2662 | end | |
2663 | end | |
2664 | ------------------------------------------------------- | |
2665 | --End Animations And Script-- | |
2666 | ------------------------------------------------------- |