SHOW:
|
|
- or go back to the newest paste.
1 | -- [ By StarzoZero ] -- | |
2 | -- [ WIP ] -- | |
3 | ||
4 | ||
5 | ||
6 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
7 | do | |
8 | script.Parent = owner.Character | |
9 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
10 | local function NewFakeEvent() | |
11 | local Bind = Instance.new("BindableEvent") | |
12 | local Fake;Fake = {Connections = {}, | |
13 | fakeEvent=true; | |
14 | Connect=function(self,Func) | |
15 | Bind.Event:connect(Func) | |
16 | self.Connections[Bind] = true | |
17 | return setmetatable({Connected = true},{ | |
18 | __index = function (self,Index) | |
19 | if Index:lower() == "disconnect" then | |
20 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
21 | end | |
22 | return Fake[Index] | |
23 | end; | |
24 | __tostring = function() return "Connection" end; | |
25 | }) | |
26 | end} | |
27 | Fake.connect = Fake.Connect;return Fake; | |
28 | end | |
29 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
30 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
31 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
32 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
33 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
34 | local function TriggerEvent(self,Event,...) | |
35 | local Trigger = Mouse[Event] | |
36 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
37 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
38 | end | |
39 | end | |
40 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
41 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
42 | if FiredBy.Name ~= owner.Name then return end | |
43 | if Input.MouseEvent then | |
44 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
45 | else | |
46 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
47 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
48 | for _,Action in pairs(ContextActionService.Actions) do | |
49 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
50 | end | |
51 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
52 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
53 | end | |
54 | end) | |
55 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
56 | Event.Parent = NLS([[ | |
57 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
58 | local Input = function(Input,gameProcessedEvent) | |
59 | if gameProcessedEvent then return end | |
60 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
61 | end | |
62 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
63 | local Hit,Target | |
64 | while wait(1/30) do | |
65 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
66 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
67 | end | |
68 | end | |
69 | ]],owner.Character) | |
70 | end | |
71 | RealGame = game;game = setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Sandbox = function (Thing) | |
74 | if Thing:IsA("Player") then | |
75 | local RealPlayer = Thing | |
76 | return setmetatable({},{ | |
77 | __index = function (self,Index) | |
78 | local Type = type(RealPlayer[Index]) | |
79 | if Type == "function" then | |
80 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
81 | return function (self)return InternalData["Mouse"] end | |
82 | end | |
83 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
84 | end | |
85 | return RealPlayer[Index] | |
86 | end; | |
87 | __tostring = function(self) return RealPlayer.Name end | |
88 | }) | |
89 | end | |
90 | end | |
91 | if RealGame[Index] then | |
92 | local Type = type(RealGame[Index]) | |
93 | if Type == "function" then | |
94 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
95 | return function (self,Service) | |
96 | local FakeServices = { | |
97 | ["players"] = function() | |
98 | return setmetatable({},{ | |
99 | __index = function (self2,Index2) | |
100 | local RealService = RealGame:GetService(Service) | |
101 | local Type2 = type(Index2) | |
102 | if Type2 == "function" then | |
103 | return function (self,...) return RealService[Index2](RealService,...)end | |
104 | else | |
105 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
106 | return RealService[Index2] | |
107 | end | |
108 | end; | |
109 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
110 | }) | |
111 | end; | |
112 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
113 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
114 | ["runservice"] = function() | |
115 | return setmetatable({},{ | |
116 | __index = function(self2,Index2) | |
117 | local RealService = RealGame:GetService(Service) | |
118 | local Type2 = type(Index2) | |
119 | if Type2 == "function" then | |
120 | return function (self,...) return RealService[Index2](RealService,...) end | |
121 | else | |
122 | local RunServices = { | |
123 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
124 | ["renderstepped"] = function() return RealService["Stepped"] end | |
125 | } | |
126 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
127 | return RealService[Index2] | |
128 | end | |
129 | end | |
130 | }) | |
131 | end | |
132 | } | |
133 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
134 | return RealGame:GetService(Service) | |
135 | end | |
136 | end | |
137 | return function (self,...) return RealGame[Index](RealGame,...) end | |
138 | else | |
139 | if game:GetService(Index) then return game:GetService(Index) end | |
140 | return RealGame[Index] | |
141 | end | |
142 | end | |
143 | return nil | |
144 | end | |
145 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
146 | ||
147 | wait() | |
148 | ||
149 | local music = Instance.new("Sound", game.LocalPlayer.Character.Head) | |
150 | - | local music = Instance.new("Sound", game.Players.LocalPlayer.Character.Head) |
150 | + | |
151 | music.Volume = 3.2 | |
152 | music.Looped = true | |
153 | music.Pitch = 1 | |
154 | music:Play() | |
155 | ||
156 | thing = 0 | |
157 | LoudVolume = false | |
158 | Submerged = false | |
159 | Music = true | |
160 | script.Name = "SANIIIIC" | |
161 | Player = game.Players.LocalPlayer | |
162 | c = game.Players.LocalPlayer.Character | |
163 | Head = c.Head | |
164 | Humanoid = c.Humanoid | |
165 | anim = c.Humanoid.Animator | |
166 | rage = false | |
167 | p = game.Players.LocalPlayer | |
168 | Music = false | |
169 | anim = Humanoid.Animator | |
170 | local Effects = {} | |
171 | attack = false | |
172 | local attacking = false | |
173 | vt = Vector3.new | |
174 | bc = BrickColor.new | |
175 | br = BrickColor.random | |
176 | it = Instance.new | |
177 | cf = CFrame.new | |
178 | euler = CFrame.fromEulerAnglesXYZ | |
179 | angles = CFrame.Angles | |
180 | matr = math.random | |
181 | mouse = Player:GetMouse() | |
182 | ||
183 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
184 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
185 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
186 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
187 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
188 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
189 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
190 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
191 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
192 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
193 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
194 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
195 | RS = c.Torso:FindFirstChild("Right Shoulder") | |
196 | LS = c.Torso:FindFirstChild("Left Shoulder") | |
197 | RH = c.Torso:FindFirstChild("Right Hip") | |
198 | LH = c.Torso:FindFirstChild("Left Hip") | |
199 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint") | |
200 | N = c.Torso:FindFirstChild("Neck") | |
201 | cf = CFrame.new | |
202 | ang = CFrame.Angles | |
203 | rd = math.rad | |
204 | rd2 = math.random | |
205 | ||
206 | --[[mainShirt = c.Shirt | |
207 | mainPants = c.Pants | |
208 | mainBColors = c["Body Colors"] | |
209 | mainShirt.ShirtTemplate = "rbxassetid://769869277" | |
210 | mainPants.PantsTemplate = "rbxassetid://805486769" | |
211 | mainBColors.HeadColor = BrickColor.new("Pastel brown") | |
212 | mainBColors.LeftArmColor = BrickColor.new("Pastel brown") | |
213 | mainBColors.LeftLegColor = BrickColor.new("Pastel brown") | |
214 | mainBColors.RightArmColor = BrickColor.new("Pastel brown") | |
215 | mainBColors.RightLegColor = BrickColor.new("Pastel brown") | |
216 | mainBColors.TorsoColor = BrickColor.new("Pastel brown")]] | |
217 | function swait(num) | |
218 | if num==0 or num==nil then | |
219 | game:service'RunService'.Heartbeat:wait(0) | |
220 | else | |
221 | for i=0,num do | |
222 | game:service'RunService'.Heartbeat:wait(0) | |
223 | end | |
224 | end | |
225 | end | |
226 | ||
227 | function lerpz(joint, prop, cfrmz, alp) | |
228 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
229 | end | |
230 | function resetlerp() | |
231 | RJ.C0 = RJC0 | |
232 | RJ.C1 = RJC1 | |
233 | N.C0 = NC0 | |
234 | N.C1 = NC1 | |
235 | RS.C0 = RSC0 | |
236 | RS.C1 = RSC1 | |
237 | LS.C0 = LSC0 | |
238 | LS.C1 = LSC1 | |
239 | RH.C0 = RHC0 | |
240 | RH.C1 = RHC1 | |
241 | LH.C0 = LHC0 | |
242 | LH.C1 = LHC1 | |
243 | end | |
244 | ||
245 | local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://0" S2.Volume = 1 S2.PlaybackSpeed = 1 S2.Looped = true S2:Play() | |
246 | ||
247 | local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))} | |
248 | local att1 = Instance.new("Attachment", c["Right Leg"]) | |
249 | att1.Name = "att1" | |
250 | att1.Position = Vector3.new(0.5, 1, 0.5) | |
251 | local att2 = Instance.new("Attachment", c["Right Leg"]) | |
252 | att2.Name = "att2" | |
253 | att2.Position = Vector3.new(-0.5, 1, 0.5) | |
254 | local att3 = Instance.new("Attachment", c["Right Leg"]) | |
255 | att3.Name = "att3" | |
256 | att3.Position = Vector3.new(0.5, -1, 0.5) | |
257 | local att4 = Instance.new("Attachment", c["Right Leg"]) | |
258 | att4.Name = "att4" | |
259 | att4.Position = Vector3.new(-0.5, -1, 0.5) | |
260 | ||
261 | local attt1 = Instance.new("Attachment", c["Left Leg"]) | |
262 | attt1.Name = "att1" | |
263 | attt1.Position = Vector3.new(0.5, 1, 0.5) | |
264 | local attt2 = Instance.new("Attachment", c["Left Leg"]) | |
265 | attt2.Name = "att2" | |
266 | attt2.Position = Vector3.new(-0.5, 1, 0.5) | |
267 | local attt3 = Instance.new("Attachment", c["Left Leg"]) | |
268 | attt3.Name = "att3" | |
269 | attt3.Position = Vector3.new(0.5, -1, 0.5) | |
270 | local attt4 = Instance.new("Attachment", c["Left Leg"]) | |
271 | attt4.Name = "att4" | |
272 | attt4.Position = Vector3.new(-0.5, -1, 0.5) | |
273 | ||
274 | local trailtop1 = Instance.new("Trail", c["Right Leg"]) | |
275 | trailtop1.Enabled = true | |
276 | trailtop1.Texture = "rbxassetid://16607923" | |
277 | trailtop1.Name = "toptrail" | |
278 | trailtop1.MinLength = 0 | |
279 | trailtop1.Lifetime = 0.1 | |
280 | ||
281 | trailtop1.Color = ColorSequence.new(ColorArray) | |
282 | ||
283 | trailtop1.Attachment0 = att1 | |
284 | trailtop1.Attachment1 = att2 | |
285 | trailtop1.Transparency = NumberSequence.new({ | |
286 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
287 | NumberSequenceKeypoint.new(1, 1, 0) | |
288 | }) | |
289 | ||
290 | local trailbot1 = Instance.new("Trail", c["Right Leg"]) | |
291 | trailbot1.Enabled = true | |
292 | trailbot1.Texture = "rbxassetid://16607923" | |
293 | trailbot1.Name = "bottrail" | |
294 | trailbot1.MinLength = 0 | |
295 | trailbot1.Lifetime = 0.1 | |
296 | ||
297 | trailbot1.Color = ColorSequence.new(ColorArray) | |
298 | ||
299 | trailbot1.Attachment0 = att3 | |
300 | trailbot1.Attachment1 = att4 | |
301 | trailbot1.Transparency = NumberSequence.new({ | |
302 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
303 | NumberSequenceKeypoint.new(1, 1, 0) | |
304 | }) | |
305 | ||
306 | local trailside1 = Instance.new("Trail", c["Right Leg"]) | |
307 | trailside1.Enabled = true | |
308 | trailside1.Texture = "rbxassetid://16607923" | |
309 | trailside1.Name = "sidetrail1" | |
310 | trailside1.MinLength = 0 | |
311 | trailside1.Lifetime = 0.1 | |
312 | ||
313 | trailside1.Color = ColorSequence.new(ColorArray) | |
314 | ||
315 | trailside1.Attachment0 = att1 | |
316 | trailside1.Attachment1 = att3 | |
317 | trailside1.Transparency = NumberSequence.new({ | |
318 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
319 | NumberSequenceKeypoint.new(1, 1, 0) | |
320 | }) | |
321 | ||
322 | local trailside2 = Instance.new("Trail", c["Right Leg"]) | |
323 | trailside2.Enabled = true | |
324 | trailside2.Texture = "rbxassetid://16607923" | |
325 | trailside2.Name = "sidetrail2" | |
326 | trailside2.MinLength = 0 | |
327 | trailside2.Lifetime = 0.1 | |
328 | spawn(function() | |
329 | while true do wait() | |
330 | trailside2.Color = ColorSequence.new(ColorArray) | |
331 | end | |
332 | end) | |
333 | trailside2.Attachment0 = att2 | |
334 | trailside2.Attachment1 = att4 | |
335 | trailside2.Transparency = NumberSequence.new({ | |
336 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
337 | NumberSequenceKeypoint.new(1, 1, 0) | |
338 | }) | |
339 | ||
340 | ||
341 | local trailtop12 = Instance.new("Trail", c["Left Leg"]) | |
342 | trailtop12.Enabled = true | |
343 | trailtop12.Texture = "rbxassetid://16607923" | |
344 | trailtop12.Name = "toptrail" | |
345 | trailtop12.MinLength = 0 | |
346 | trailtop12.Lifetime = 0.1 | |
347 | spawn(function() | |
348 | while true do wait() | |
349 | trailtop12.Color = ColorSequence.new(ColorArray) | |
350 | end | |
351 | end) | |
352 | trailtop12.Attachment0 = attt1 | |
353 | trailtop12.Attachment1 = attt2 | |
354 | trailtop12.Transparency = NumberSequence.new({ | |
355 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
356 | NumberSequenceKeypoint.new(1, 1, 0) | |
357 | }) | |
358 | ||
359 | local trailbot2 = Instance.new("Trail", c["Left Leg"]) | |
360 | trailbot2.Enabled = true | |
361 | trailbot2.Texture = "rbxassetid://16607923" | |
362 | trailbot2.Name = "bottrail" | |
363 | trailbot2.MinLength = 0 | |
364 | trailbot2.Lifetime = 0.1 | |
365 | ||
366 | trailbot2.Color = ColorSequence.new(ColorArray) | |
367 | ||
368 | trailbot2.Attachment0 = attt3 | |
369 | trailbot2.Attachment1 = attt4 | |
370 | trailbot2.Transparency = NumberSequence.new({ | |
371 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
372 | NumberSequenceKeypoint.new(1, 1, 0) | |
373 | }) | |
374 | ||
375 | local trailside12 = Instance.new("Trail", c["Left Leg"]) | |
376 | trailside12.Enabled = true | |
377 | trailside12.Texture = "rbxassetid://16607923" | |
378 | trailside12.Name = "sidetrail1" | |
379 | trailside12.MinLength = 0 | |
380 | trailside12.Lifetime = 0.1 | |
381 | ||
382 | trailside12.Color = ColorSequence.new(ColorArray) | |
383 | ||
384 | trailside12.Attachment0 = attt1 | |
385 | trailside12.Attachment1 = attt3 | |
386 | trailside12.Transparency = NumberSequence.new({ | |
387 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
388 | NumberSequenceKeypoint.new(1, 1, 0) | |
389 | }) | |
390 | ||
391 | local trailside22 = Instance.new("Trail", c["Left Leg"]) | |
392 | trailside22.Enabled = true | |
393 | trailside22.Texture = "rbxassetid://16607923" | |
394 | trailside22.Name = "sidetrail2" | |
395 | trailside22.MinLength = 0 | |
396 | trailside22.Lifetime = 0.1 | |
397 | ||
398 | trailside22.Color = ColorSequence.new(ColorArray) | |
399 | ||
400 | trailside22.Attachment0 = attt2 | |
401 | trailside22.Attachment1 = attt4 | |
402 | trailside22.Transparency = NumberSequence.new({ | |
403 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
404 | NumberSequenceKeypoint.new(1, 1, 0) | |
405 | }) | |
406 | ||
407 | ||
408 | local att1 = Instance.new("Attachment", c["Right Arm"]) | |
409 | att1.Name = "att1" | |
410 | att1.Position = Vector3.new(0.5, 1, 0.5) | |
411 | local att2 = Instance.new("Attachment", c["Right Arm"]) | |
412 | att2.Name = "att2" | |
413 | att2.Position = Vector3.new(-0.5, 1, 0.5) | |
414 | local att3 = Instance.new("Attachment", c["Right Arm"]) | |
415 | att3.Name = "att3" | |
416 | att3.Position = Vector3.new(0.5, -1, 0.5) | |
417 | local att4 = Instance.new("Attachment", c["Right Arm"]) | |
418 | att4.Name = "att4" | |
419 | att4.Position = Vector3.new(-0.5, -1, 0.5) | |
420 | ||
421 | local attt1 = Instance.new("Attachment", c["Left Arm"]) | |
422 | attt1.Name = "att1" | |
423 | attt1.Position = Vector3.new(0.5, 1, 0.5) | |
424 | local attt2 = Instance.new("Attachment", c["Left Arm"]) | |
425 | attt2.Name = "att2" | |
426 | attt2.Position = Vector3.new(-0.5, 1, 0.5) | |
427 | local attt3 = Instance.new("Attachment", c["Left Arm"]) | |
428 | attt3.Name = "att3" | |
429 | attt3.Position = Vector3.new(0.5, -1, 0.5) | |
430 | local attt4 = Instance.new("Attachment", c["Left Arm"]) | |
431 | attt4.Name = "att4" | |
432 | attt4.Position = Vector3.new(-0.5, -1, 0.5) | |
433 | ||
434 | local trailtop1 = Instance.new("Trail", c["Right Arm"]) | |
435 | trailtop1.Enabled = true | |
436 | trailtop1.Texture = "rbxassetid://16607923" | |
437 | trailtop1.Name = "toptrail" | |
438 | trailtop1.MinLength = 0 | |
439 | trailtop1.Lifetime = 0.1 | |
440 | ||
441 | trailtop1.Color = ColorSequence.new(ColorArray) | |
442 | ||
443 | trailtop1.Attachment0 = att1 | |
444 | trailtop1.Attachment1 = att2 | |
445 | trailtop1.Transparency = NumberSequence.new({ | |
446 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
447 | NumberSequenceKeypoint.new(1, 1, 0) | |
448 | }) | |
449 | ||
450 | local trailbot1 = Instance.new("Trail", c["Right Arm"]) | |
451 | trailbot1.Enabled = true | |
452 | trailbot1.Texture = "rbxassetid://16607923" | |
453 | trailbot1.Name = "bottrail" | |
454 | trailbot1.MinLength = 0 | |
455 | trailbot1.Lifetime = 0.1 | |
456 | spawn(function() | |
457 | while true do wait() | |
458 | trailbot1.Color = ColorSequence.new(ColorArray) | |
459 | end | |
460 | end) | |
461 | trailbot1.Attachment0 = att3 | |
462 | trailbot1.Attachment1 = att4 | |
463 | trailbot1.Transparency = NumberSequence.new({ | |
464 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
465 | NumberSequenceKeypoint.new(1, 1, 0) | |
466 | }) | |
467 | ||
468 | local trailside1 = Instance.new("Trail", c["Right Arm"]) | |
469 | trailside1.Enabled = true | |
470 | trailside1.Texture = "rbxassetid://16607923" | |
471 | trailside1.Name = "sidetrail1" | |
472 | trailside1.MinLength = 0 | |
473 | trailside1.Lifetime = 0.1 | |
474 | ||
475 | trailside1.Color = ColorSequence.new(ColorArray) | |
476 | ||
477 | trailside1.Attachment0 = att1 | |
478 | trailside1.Attachment1 = att3 | |
479 | trailside1.Transparency = NumberSequence.new({ | |
480 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
481 | NumberSequenceKeypoint.new(1, 1, 0) | |
482 | }) | |
483 | ||
484 | local trailside2 = Instance.new("Trail", c["Right Arm"]) | |
485 | trailside2.Enabled = true | |
486 | trailside2.Texture = "rbxassetid://16607923" | |
487 | trailside2.Name = "sidetrail2" | |
488 | trailside2.MinLength = 0 | |
489 | trailside2.Lifetime = 0.1 | |
490 | ||
491 | trailside2.Color = ColorSequence.new(ColorArray) | |
492 | ||
493 | trailside2.Attachment0 = att2 | |
494 | trailside2.Attachment1 = att4 | |
495 | trailside2.Transparency = NumberSequence.new({ | |
496 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
497 | NumberSequenceKeypoint.new(1, 1, 0) | |
498 | }) | |
499 | ||
500 | ||
501 | local trailtop12 = Instance.new("Trail", c["Left Arm"]) | |
502 | trailtop12.Enabled = true | |
503 | trailtop12.Texture = "rbxassetid://16607923" | |
504 | trailtop12.Name = "toptrail" | |
505 | trailtop12.MinLength = 0 | |
506 | trailtop12.Lifetime = 0.1 | |
507 | ||
508 | trailtop12.Color = ColorSequence.new(ColorArray) | |
509 | ||
510 | trailtop12.Attachment0 = attt1 | |
511 | trailtop12.Attachment1 = attt2 | |
512 | trailtop12.Transparency = NumberSequence.new({ | |
513 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
514 | NumberSequenceKeypoint.new(1, 1, 0) | |
515 | }) | |
516 | ||
517 | local trailbot2 = Instance.new("Trail", c["Left Arm"]) | |
518 | trailbot2.Enabled = true | |
519 | trailbot2.Texture = "rbxassetid://16607923" | |
520 | trailbot2.Name = "bottrail" | |
521 | trailbot2.MinLength = 0 | |
522 | trailbot2.Lifetime = 0.1 | |
523 | ||
524 | trailbot2.Color = ColorSequence.new(ColorArray) | |
525 | ||
526 | trailbot2.Attachment0 = attt3 | |
527 | trailbot2.Attachment1 = attt4 | |
528 | trailbot2.Transparency = NumberSequence.new({ | |
529 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
530 | NumberSequenceKeypoint.new(1, 1, 0) | |
531 | }) | |
532 | ||
533 | local trailside12 = Instance.new("Trail", c["Left Arm"]) | |
534 | trailside12.Enabled = true | |
535 | trailside12.Texture = "rbxassetid://16607923" | |
536 | trailside12.Name = "sidetrail1" | |
537 | trailside12.MinLength = 0 | |
538 | trailside12.Lifetime = 0.1 | |
539 | ||
540 | trailside12.Color = ColorSequence.new(ColorArray) | |
541 | ||
542 | trailside12.Attachment0 = attt1 | |
543 | trailside12.Attachment1 = attt3 | |
544 | trailside12.Transparency = NumberSequence.new({ | |
545 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
546 | NumberSequenceKeypoint.new(1, 1, 0) | |
547 | }) | |
548 | ||
549 | local trailside22 = Instance.new("Trail", c["Left Arm"]) | |
550 | trailside22.Enabled = true | |
551 | trailside22.Texture = "rbxassetid://16607923" | |
552 | trailside22.Name = "sidetrail2" | |
553 | trailside22.MinLength = 0 | |
554 | trailside22.Lifetime = 0.1 | |
555 | ||
556 | trailside22.Color = ColorSequence.new(ColorArray) | |
557 | ||
558 | trailside22.Attachment0 = attt2 | |
559 | trailside22.Attachment1 = attt4 | |
560 | trailside22.Transparency = NumberSequence.new({ | |
561 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
562 | NumberSequenceKeypoint.new(1, 1, 0) | |
563 | }) | |
564 | ||
565 | local att1 = Instance.new("Attachment", c["Torso"]) | |
566 | att1.Name = "att1" | |
567 | att1.Position = Vector3.new(1, 1, 0.5) | |
568 | local att2 = Instance.new("Attachment", c["Torso"]) | |
569 | att2.Name = "att2" | |
570 | att2.Position = Vector3.new(-1, 1, 0.5) | |
571 | local att3 = Instance.new("Attachment", c["Torso"]) | |
572 | att3.Name = "att3" | |
573 | att3.Position = Vector3.new(1, -1, 0.5) | |
574 | local att4 = Instance.new("Attachment", c["Torso"]) | |
575 | att4.Name = "att4" | |
576 | att4.Position = Vector3.new(-1, -1, 0.5) | |
577 | ||
578 | local attt1 = Instance.new("Attachment", c["Head"]) | |
579 | attt1.Name = "att1" | |
580 | attt1.Position = Vector3.new(.55, .55, 0.025) | |
581 | local attt2 = Instance.new("Attachment", c["Head"]) | |
582 | attt2.Name = "att2" | |
583 | attt2.Position = Vector3.new(-.55, .55, 0.025) | |
584 | local attt3 = Instance.new("Attachment", c["Head"]) | |
585 | attt3.Name = "att3" | |
586 | attt3.Position = Vector3.new(.55, -.5, 0.025) | |
587 | local attt4 = Instance.new("Attachment", c["Head"]) | |
588 | attt4.Name = "att4" | |
589 | attt4.Position = Vector3.new(-.55, -.5, 0.025) | |
590 | local trailtop1 = Instance.new("Trail", c["Torso"]) | |
591 | trailtop1.Enabled = true | |
592 | trailtop1.Texture = "rbxassetid://16607923" | |
593 | trailtop1.Name = "toptrail" | |
594 | trailtop1.MinLength = 0 | |
595 | trailtop1.Lifetime = 0.1 | |
596 | ||
597 | trailtop1.Color = ColorSequence.new(ColorArray) | |
598 | ||
599 | trailtop1.Attachment0 = att1 | |
600 | trailtop1.Attachment1 = att2 | |
601 | trailtop1.Transparency = NumberSequence.new({ | |
602 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
603 | NumberSequenceKeypoint.new(1, 1, 0) | |
604 | }) | |
605 | local trailbot1 = Instance.new("Trail", c["Torso"]) | |
606 | trailbot1.Enabled = true | |
607 | trailbot1.Texture = "rbxassetid://16607923" | |
608 | trailbot1.Name = "bottrail" | |
609 | trailbot1.MinLength = 0 | |
610 | trailbot1.Lifetime = 0.1 | |
611 | ||
612 | trailbot1.Color = ColorSequence.new(ColorArray) | |
613 | ||
614 | trailbot1.Attachment0 = att3 | |
615 | trailbot1.Attachment1 = att4 | |
616 | trailbot1.Transparency = NumberSequence.new({ | |
617 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
618 | NumberSequenceKeypoint.new(1, 1, 0) | |
619 | }) | |
620 | local trailside1 = Instance.new("Trail", c["Torso"]) | |
621 | trailside1.Enabled = true | |
622 | trailside1.Texture = "rbxassetid://16607923" | |
623 | trailside1.Name = "sidetrail1" | |
624 | trailside1.MinLength = 0 | |
625 | trailside1.Lifetime = 0.1 | |
626 | ||
627 | trailside1.Color = ColorSequence.new(ColorArray) | |
628 | ||
629 | trailside1.Attachment0 = att1 | |
630 | trailside1.Attachment1 = att3 | |
631 | trailside1.Transparency = NumberSequence.new({ | |
632 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
633 | NumberSequenceKeypoint.new(1, 1, 0) | |
634 | }) | |
635 | local trailside2 = Instance.new("Trail", c["Torso"]) | |
636 | trailside2.Enabled = true | |
637 | trailside2.Texture = "rbxassetid://16607923" | |
638 | trailside2.Name = "sidetrail2" | |
639 | trailside2.MinLength = 0 | |
640 | trailside2.Lifetime = 0.1 | |
641 | ||
642 | trailside2.Color = ColorSequence.new(ColorArray) | |
643 | ||
644 | trailside2.Attachment0 = att2 | |
645 | trailside2.Attachment1 = att4 | |
646 | trailside2.Transparency = NumberSequence.new({ | |
647 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
648 | NumberSequenceKeypoint.new(1, 1, 0) | |
649 | }) | |
650 | local trailtop12 = Instance.new("Trail", c["Head"]) | |
651 | trailtop12.Enabled = true | |
652 | trailtop12.Texture = "rbxassetid://16607923" | |
653 | trailtop12.Name = "toptrail" | |
654 | trailtop12.MinLength = 0 | |
655 | trailtop12.Lifetime = 0.1 | |
656 | ||
657 | trailtop12.Color = ColorSequence.new(ColorArray) | |
658 | ||
659 | trailtop12.Attachment0 = attt1 | |
660 | trailtop12.Attachment1 = attt2 | |
661 | trailtop12.Transparency = NumberSequence.new({ | |
662 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
663 | NumberSequenceKeypoint.new(1, 1, 0) | |
664 | }) | |
665 | local trailbot2 = Instance.new("Trail", c["Head"]) | |
666 | trailbot2.Enabled = true | |
667 | trailbot2.Texture = "rbxassetid://16607923" | |
668 | trailbot2.Name = "bottrail" | |
669 | trailbot2.MinLength = 0 | |
670 | trailbot2.Lifetime = 0.1 | |
671 | ||
672 | trailbot2.Color = ColorSequence.new(ColorArray) | |
673 | ||
674 | trailbot2.Attachment0 = attt3 | |
675 | trailbot2.Attachment1 = attt4 | |
676 | trailbot2.Transparency = NumberSequence.new({ | |
677 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
678 | NumberSequenceKeypoint.new(1, 1, 0) | |
679 | }) | |
680 | local trailside12 = Instance.new("Trail", c["Head"]) | |
681 | trailside12.Enabled = true | |
682 | trailside12.Texture = "rbxassetid://16607923" | |
683 | trailside12.Name = "sidetrail1" | |
684 | trailside12.MinLength = 0 | |
685 | trailside12.Lifetime = 0.1 | |
686 | ||
687 | trailside12.Color = ColorSequence.new(ColorArray) | |
688 | ||
689 | trailside12.Attachment0 = attt1 | |
690 | trailside12.Attachment1 = attt3 | |
691 | trailside12.Transparency = NumberSequence.new({ | |
692 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
693 | NumberSequenceKeypoint.new(1, 1, 0) | |
694 | }) | |
695 | local trailside22 = Instance.new("Trail", c["Head"]) | |
696 | trailside22.Enabled = true | |
697 | trailside22.Texture = "rbxassetid://16607923" | |
698 | trailside22.Name = "sidetrail2" | |
699 | trailside22.MinLength = 0 | |
700 | trailside22.Lifetime = 0.1 | |
701 | ||
702 | trailside22.Color = ColorSequence.new(ColorArray) | |
703 | ||
704 | trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4 | |
705 | trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)}) | |
706 | ||
707 | Sped = 0 | |
708 | ||
709 | function ragplayer(cactus) | |
710 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://872854837" S.Volume = 2 S:Play() | |
711 | cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01 | |
712 | if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then | |
713 | cactus.Torso:FindFirstChild("Right Shoulder"):Destroy() | |
714 | makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder") | |
715 | maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0)) | |
716 | end | |
717 | if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then | |
718 | cactus.Torso:FindFirstChild("Left Shoulder"):Destroy() | |
719 | makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder") | |
720 | maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0)) | |
721 | end | |
722 | if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then | |
723 | cactus.Torso:FindFirstChild("Right Hip"):Destroy() | |
724 | makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip") | |
725 | maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0)) | |
726 | end | |
727 | if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then | |
728 | cactus.Torso:FindFirstChild("Left Hip"):Destroy() | |
729 | makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip") | |
730 | maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0)) | |
731 | end | |
732 | cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15) | |
733 | end | |
734 | function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end | |
735 | ||
736 | function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end | |
737 | ||
738 | local hitz = false | |
739 | c.HumanoidRootPart.Touched:connect(function(Hit) | |
740 | if thing >= 100 then | |
741 | if hitz == false then hitz = true | |
742 | ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://633129949" S.Volume = 6 S:Play() | |
743 | wait(15) | |
744 | end | |
745 | end | |
746 | end) | |
747 | ||
748 | function Spin() | |
749 | attack = true | |
750 | while attack == true do Sped = Sped + 0.25 | |
751 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1) | |
752 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1) | |
753 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1) | |
754 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
755 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1) | |
756 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
757 | lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
758 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
759 | lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
760 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
761 | swait() | |
762 | end | |
763 | end | |
764 | ||
765 | SanicScreams = {585370931,202427593} | |
766 | ||
767 | mouse.KeyDown:connect(function(key) | |
768 | if attack == true then return end | |
769 | if key == "q" then | |
770 | Spin() | |
771 | end | |
772 | if key == "e" then | |
773 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1247863968" S.Volume = 10 S:Play() | |
774 | wait(1.25) | |
775 | local Sanic = SanicScreams[math.random(1,#SanicScreams)] | |
776 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://0" S.Volume = 10 S:Play() | |
777 | spawn(function() | |
778 | local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Cyan")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false | |
779 | local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame | |
780 | for i = 1,25 do | |
781 | SPM.Scale = SPM.Scale + Vector3.new(4,4,4) | |
782 | Sp.Transparency = Sp.Transparency + 1/25 | |
783 | swait() | |
784 | end | |
785 | end) | |
786 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://622100551" S.Volume = 10 S:Play() | |
787 | Sped = 150 | |
788 | end | |
789 | end) | |
790 | ||
791 | mouse.KeyUp:connect(function(key) | |
792 | if key == "q" then | |
793 | attack = false | |
794 | end | |
795 | end) | |
796 | ||
797 | local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15) | |
798 | P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart" | |
799 | P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass" | |
800 | spawn(function() | |
801 | while true do | |
802 | P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z) | |
803 | swait() | |
804 | end | |
805 | end) | |
806 | ||
807 | anim.Parent = nil | |
808 | sine = 0 | |
809 | ||
810 | game:GetService("RunService").RenderStepped:connect(function() | |
811 | if attack == false then | |
812 | thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
813 | game.Workspace.CurrentCamera.FieldOfView = 70+thing/100 | |
814 | if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1 | |
815 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1) | |
816 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1) | |
817 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1) | |
818 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
819 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1) | |
820 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
821 | lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
822 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
823 | lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
824 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
825 | elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then | |
826 | sine = sine + 1 Sped = Sped + 0.1 | |
827 | if thing <= 200 then | |
828 | if S2.PlaybackSpeed >= 1 then | |
829 | S2.PlaybackSpeed = 1 | |
830 | else | |
831 | S2.PlaybackSpeed = thing/80 | |
832 | end | |
833 | c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped | |
834 | S2.Volume = thing/20 | |
835 | end | |
836 | if thing <= 200 then | |
837 | c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped | |
838 | S2.Volume = thing/20 | |
839 | else | |
840 | c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped | |
841 | end | |
842 | if thing <= 100 then | |
843 | for i,v in pairs(c:children()) do | |
844 | if v.ClassName == "Part" then | |
845 | for i,v2 in pairs(v:children()) do | |
846 | if v2.ClassName == "Trail" then | |
847 | v2.Enabled = false | |
848 | v2.LightEmission = 1 | |
849 | end | |
850 | end | |
851 | end | |
852 | end | |
853 | else | |
854 | for i,v in pairs(c:children()) do | |
855 | if v.ClassName == "Part" then | |
856 | for i,v2 in pairs(v:children()) do | |
857 | if v2.ClassName == "Trail" then | |
858 | v2.Lifetime = 2 | |
859 | v2.Enabled = true | |
860 | end | |
861 | end | |
862 | end | |
863 | end | |
864 | end | |
865 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1) | |
866 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
867 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1) | |
868 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
869 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1) | |
870 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
871 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1) | |
872 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
873 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1) | |
874 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
875 | else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0 | |
876 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
877 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
878 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5) | |
879 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
880 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5) | |
881 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
882 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
883 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
884 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
885 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
886 | end | |
887 | for i,v in pairs (c:children()) do | |
888 | if v.ClassName == "Accessory" then | |
889 | for i,v2 in pairs (v:children()) do | |
890 | if v2.ClassName == "Part" then | |
891 | v2.Anchored = false | |
892 | end | |
893 | end | |
894 | end | |
895 | for i,v in pairs (c:children()) do | |
896 | if v.ClassName == "Part" then | |
897 | v.Anchored = false | |
898 | end | |
899 | end | |
900 | end | |
901 | end | |
902 | end) |