SHOW:
|
|
- or go back to the newest paste.
1 | - | error'Fuck you if you are KingHerobrine9876' |
1 | + | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | local rp = RealPlayer | |
6 | script.Parent = rp.Character | |
7 | ||
8 | --RemoteEvent for communicating | |
9 | local Event = Instance.new("RemoteEvent") | |
10 | Event.Name = "UserInput_Event" | |
11 | ||
12 | --Fake event to make stuff like Mouse.KeyDown work | |
13 | local function fakeEvent() | |
14 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
15 | t.connect = t.Connect | |
16 | return t | |
17 | end | |
18 | ||
19 | --Creating fake input objects with fake variables | |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
24 | end} | |
25 | --Merged 2 functions into one by checking amount of arguments | |
26 | CAS.UnbindAction = CAS.BindAction | |
27 | ||
28 | --This function will trigger the events that have been :Connect()'ed | |
29 | local function te(self,ev,...) | |
30 | local t = m[ev] | |
31 | if t and t._fakeEvent then | |
32 | for _,f in pairs(t.Functions) do | |
33 | f(...) | |
34 | end | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=rp then return end | |
42 | m.Target = io.Target | |
43 | m.Hit = io.Hit | |
44 | if not io.isMouse then | |
45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
47 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
48 | end | |
49 | for _,t in pairs(CAS.Actions) do | |
50 | for _,k in pairs(t.Keys) do | |
51 | if k==io.KeyCode then | |
52 | t.Function(t.Name,io.UserInputState,io) | |
53 | end | |
54 | end | |
55 | end | |
56 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
58 | end | |
59 | end) | |
60 | Event.Parent = NLS([==[ | |
61 | local Player = game:GetService("Players").LocalPlayer | |
62 | local Event = script:WaitForChild("UserInput_Event") | |
63 | ||
64 | local Mouse = Player:GetMouse() | |
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | ||
84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
85 | --Real game object | |
86 | local _rg = game | |
87 | ||
88 | --Metatable for fake service | |
89 | local fsmt = { | |
90 | __index = function(self,k) | |
91 | local s = rawget(self,"_RealService") | |
92 | if s then return s[k] end | |
93 | end, | |
94 | __newindex = function(self,k,v) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then s[k]=v end | |
97 | end, | |
98 | __call = function(self,...) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then return s(...) end | |
101 | end | |
102 | } | |
103 | local function FakeService(t,RealService) | |
104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
105 | return setmetatable(t,fsmt) | |
106 | end | |
107 | ||
108 | --Fake game object | |
109 | local g = { | |
110 | GetService = function(self,s) | |
111 | return self[s] | |
112 | end, | |
113 | Players = FakeService({ | |
114 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
115 | },"Players"), | |
116 | UserInputService = FakeService(UIS,"UserInputService"), | |
117 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
118 | } | |
119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
120 | g.service = g.GetService | |
121 | ||
122 | g.RunService = FakeService({ | |
123 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
124 | BindToRenderStep = function(self,name,_,fun) | |
125 | ||
126 | end, | |
127 | UnbindFromRenderStep = function(self,name) | |
128 | self._btrs[name]:Disconnect() | |
129 | end, | |
130 | },"RunService") | |
131 | ||
132 | setmetatable(g,{ | |
133 | __index=function(self,s) | |
134 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
135 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
136 | end, | |
137 | __newindex = fsmt.__newindex, | |
138 | __call = fsmt.__call | |
139 | }) | |
140 | --Changing owner to fake player object to support owner:GetMouse() | |
141 | game,owner = g,g.Players.LocalPlayer | |
142 | end | |
143 | ||
144 | wait(1/64) | |
145 | print("--[[By Ietahuoy]]--") | |
146 | print("--[[ Creeper ]]--") | |
147 | local Plrr = game.Players.LocalPlayer | |
148 | local Mouse = Plrr:GetMouse() | |
149 | local Sinn = 0 | |
150 | Plrr.Character.Animate.Parent = nil | |
151 | Plrr.Character.Humanoid.Animator.Parent = nil | |
152 | Plrr.Character.Humanoid.MaxHealth = 200 | |
153 | Plrr.Character.Humanoid.Health = 200 | |
154 | local Boom = false | |
155 | local E = Instance.new("Folder",Plrr.Character) | |
156 | local ws = 18 | |
157 | function InstanceNW(typp,anth) | |
158 | local part = Instance.new(typp) | |
159 | if anth then | |
160 | for i,v in next, anth do | |
161 | pcall(function() part[i] = v end) | |
162 | end | |
163 | end | |
164 | return part | |
165 | end | |
166 | function Damage(what) | |
167 | if what.Parent ~= Plrr.Character and what ~= Plrr.Character and what.Parent ~= E then | |
168 | what:BreakJoints() | |
169 | local P1 = InstanceNW("Part",{Parent=E,Material=what.Material,Transparency=what.Transparency,BrickColor=what.BrickColor,Size=Vector3.new(what.Size.X,what.Size.Y/2,what.Size.Z),Anchored=false,CanCollide=true,CFrame = what.CFrame*CFrame.new(what.Size.X,what.Size.Y/4,0),RotVelocity=Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),Velocity=Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))}) | |
170 | local P2 = InstanceNW("Part",{Parent=E,Material=what.Material,Transparency=what.Transparency,BrickColor=what.BrickColor,Size=Vector3.new(what.Size.X,what.Size.Y/2,what.Size.Z),Anchored=false,CanCollide=true,CFrame = what.CFrame*CFrame.new(what.Size.X,-what.Size.Y/4,0),RotVelocity=Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),Velocity=Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))}) | |
171 | what:Destroy() | |
172 | coroutine.resume(coroutine.create(function() | |
173 | wait(math.random(6,24)) | |
174 | local num = math.random(50,250) | |
175 | for i = 1, num do | |
176 | wait() | |
177 | P1.Transparency = P1.Transparency+1/num | |
178 | P2.Transparency = P2.Transparency+1/num | |
179 | end | |
180 | P1:Destroy() P2:Destroy() | |
181 | end)) | |
182 | end | |
183 | end | |
184 | function Aoe(Where,Range) | |
185 | for index, a in pairs(workspace:GetDescendants()) do | |
186 | if a.Parent ~= Plrr.Character and a ~= Plrr.Character and a.Parent ~= E and a.Name ~= "Base" and a.Name ~= "Baseplate" and a.ClassName == "Part" or a.ClassName == "MeshPart" or a.ClassName == "TrussPart" or a.ClassName == "WedgePart" or a.ClassName == "CornerWedgePart" or a.ClassName == "UnionOperation" or a.ClassName == "NegateOperation" or a.ClassName == "Seat" or a.ClassName == "VehicleSeat" or a.ClassName == "SpawnLocation" then | |
187 | if (a.Position - Where).Magnitude = Range+(a.Size/2).Magnitude then | |
188 | - | if (a.Position - Where).Magnitude <= Range+(a.Size/2).Magnitude then |
188 | + | |
189 | end | |
190 | end | |
191 | end | |
192 | end | |
193 | ||
194 | function Explosion() | |
195 | Boom = true | |
196 | local a = Instance.new("Sound",Plrr.Character) a.SoundId="http://www.roblox.com/asset/?id=301924340" a.Volume = 3 a:Play() | |
197 | ws = 22 | |
198 | for i = 1, 7 do | |
199 | wait(0.2) | |
200 | for i,v in pairs(Plrr.Character:children()) do | |
201 | if v:IsA("BasePart") and v.Parent ~= E then | |
202 | v.BrickColor = BrickColor.new("Institutional white") | |
203 | v.Material = "Neon" | |
204 | end | |
205 | end | |
206 | wait(0.2) | |
207 | for i,v in pairs(Plrr.Character:children()) do | |
208 | if v:IsA("BasePart") and v.Parent ~= E then | |
209 | v.BrickColor = BrickColor.new("Shamrock") | |
210 | v.Material = "Marble" | |
211 | end | |
212 | end | |
213 | end | |
214 | for i = 1, 15 do | |
215 | wait() | |
216 | for i,v in pairs(Plrr.Character:children()) do | |
217 | if v:IsA("BasePart") and v.Parent ~= E then | |
218 | v.BrickColor = BrickColor.new("Institutional white") | |
219 | v.Material = "Neon" | |
220 | v.Size = v.Size*1.015 | |
221 | end | |
222 | end | |
223 | end | |
224 | for i,v in pairs(Plrr.Character:children()) do | |
225 | if v:IsA("BasePart") and v.Parent ~= E and v ~= Plrr.Character.HumanoidRootPart then | |
226 | v.Transparency = 1 | |
227 | end | |
228 | end | |
229 | Plrr.Character.Head.face.Transparency = 1 | |
230 | for i = 1, 15 do | |
231 | for i,v in pairs(Plrr.Character:children()) do | |
232 | if v:IsA("BasePart") and v.Parent ~= E then | |
233 | v.BrickColor = BrickColor.new("Shamrock") | |
234 | v.Material = "Marble" | |
235 | v.Size = v.Size/1.015 | |
236 | end | |
237 | end | |
238 | end | |
239 | ws = 0 | |
240 | Aoe(Plrr.Character.HumanoidRootPart.Position,14) | |
241 | ParticleEmitter0 = Instance.new("ParticleEmitter") | |
242 | ParticleEmitter0.Parent = Plrr.Character.HumanoidRootPart | |
243 | ParticleEmitter0.Rotation = NumberRange.new(-50, 50) | |
244 | ParticleEmitter0.Size = NumberSequence.new(0.18750011920929,2.9375,1.1874997615814,0) | |
245 | ParticleEmitter0.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)}) | |
246 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0, 0, 0)) | |
247 | ParticleEmitter0.LightEmission = 0.60000002384186 | |
248 | ParticleEmitter0.Texture = "rbxassetid://941626301" | |
249 | ParticleEmitter0.Lifetime = NumberRange.new(2, 3) | |
250 | ParticleEmitter0.Rate = 2000 | |
251 | ParticleEmitter0.RotSpeed = NumberRange.new(-110, 110) | |
252 | ParticleEmitter0.Speed = NumberRange.new(9, 9) | |
253 | ParticleEmitter0.VelocitySpread = 360 | |
254 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0, 0, 0)) | |
255 | ParticleEmitter0.Drag = 0.75 | |
256 | coroutine.resume(coroutine.create(function() | |
257 | wait(1) | |
258 | ParticleEmitter0.Enabled = false | |
259 | wait(3) | |
260 | ParticleEmitter0:Destroy() | |
261 | end)) | |
262 | for i = 1, 5 do | |
263 | coroutine.resume(coroutine.create(function() | |
264 | local Cframe = Plrr.Character.HumanoidRootPart.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
265 | local effectpart = Instance.new("Part",E)Instance.new("SpecialMesh",effectpart).MeshType = "Sphere" | |
266 | effectpart.Size = Vector3.new(2,2,2) | |
267 | effectpart.CFrame = Cframe | |
268 | effectpart.Anchored = true | |
269 | effectpart.CanCollide = false | |
270 | effectpart.Massless = true | |
271 | effectpart.Material = "Neon" | |
272 | effectpart.Color = Color3.fromRGB(255/(i/5),255/(i/5),255/(i/5)) | |
273 | for i = 1, 50 do | |
274 | wait() | |
275 | effectpart.Size = effectpart.Size*Vector3.new(1.1,1.1,1.1) | |
276 | effectpart.Transparency = effectpart.Transparency + 1/25 | |
277 | effectpart.CFrame = Cframe | |
278 | end | |
279 | effectpart:destroy() | |
280 | end)) | |
281 | end | |
282 | coroutine.resume(coroutine.create(function() | |
283 | local effectpart = Instance.new("Part",E)Instance.new("SpecialMesh",effectpart).MeshType = "Sphere" | |
284 | effectpart.Size = Vector3.new(4,4,4) | |
285 | effectpart.CFrame = Plrr.Character.HumanoidRootPart.CFrame | |
286 | effectpart.Anchored = true | |
287 | effectpart.CanCollide = false | |
288 | effectpart.Massless = true | |
289 | effectpart.Material = "Neon" | |
290 | effectpart.Color = Color3.fromRGB(255,255,255) | |
291 | for i = 1, 75 do | |
292 | wait() | |
293 | effectpart.Size = effectpart.Size*Vector3.new(1.05,1.05,1.05) | |
294 | effectpart.Transparency = effectpart.Transparency + 1/50 | |
295 | effectpart.CFrame = Plrr.Character.HumanoidRootPart.CFrame | |
296 | end | |
297 | effectpart:destroy() | |
298 | end)) | |
299 | local fakehead = Instance.new("Part",E) fakehead.Anchored = false fakehead.BrickColor = BrickColor.new("Shamrock") fakehead.Material = "Marble" fakehead.CanCollide = true fakehead.Size = Plrr.Character.Head.Size | |
300 | fakehead.CFrame = Plrr.Character.Head.CFrame fakehead.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
301 | local fakeface = Instance.new("Decal",fakehead) fakeface.Face = "Front" fakeface.Texture = "http://www.roblox.com/asset/?id=2582561835" | |
302 | local faketorso = Instance.new("Part",E) faketorso.Anchored = false faketorso.BrickColor = BrickColor.new("Shamrock") faketorso.Material = "Marble" faketorso.CanCollide = true faketorso.Size = Plrr.Character.Torso.Size | |
303 | faketorso.CFrame = Plrr.Character.Torso.CFrame faketorso.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
304 | local fakerarm = Instance.new("Part",E) fakerarm.Anchored = false fakerarm.BrickColor = BrickColor.new("Shamrock") fakerarm.Material = "Marble" fakerarm.CanCollide = true fakerarm.Size = Plrr.Character:FindFirstChild("Right Arm").Size | |
305 | fakerarm.CFrame = Plrr.Character:FindFirstChild("Right Arm").CFrame fakerarm.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
306 | local fakelarm = Instance.new("Part",E) fakelarm.Anchored = false fakelarm.BrickColor = BrickColor.new("Shamrock") fakelarm.Material = "Marble" fakelarm.CanCollide = true fakelarm.Size = Plrr.Character:FindFirstChild("Left Arm").Size | |
307 | fakelarm.CFrame = Plrr.Character:FindFirstChild("Left Arm").CFrame fakelarm.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
308 | local fakerleg = Instance.new("Part",E) fakerleg.Anchored = false fakerleg.BrickColor = BrickColor.new("Shamrock") fakerleg.Material = "Marble" fakerleg.CanCollide = true fakerleg.Size = Plrr.Character:FindFirstChild("Right Leg").Size | |
309 | fakerleg.CFrame = Plrr.Character:FindFirstChild("Right Leg").CFrame fakerleg.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
310 | local fakelleg = Instance.new("Part",E) fakelleg.Anchored = false fakelleg.BrickColor = BrickColor.new("Shamrock") fakelleg.Material = "Marble" fakelleg.CanCollide = true fakelleg.Size = Plrr.Character:FindFirstChild("Left Leg").Size | |
311 | fakelleg.CFrame = Plrr.Character:FindFirstChild("Left Leg").CFrame fakelleg.Velocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
312 | wait(4) | |
313 | fakehead.CanCollide = false fakehead.Anchored = true | |
314 | faketorso.CanCollide = false faketorso.Anchored = true | |
315 | fakerarm.CanCollide = false fakerarm.Anchored = true | |
316 | fakelarm.CanCollide = false fakelarm.Anchored = true | |
317 | fakerleg.CanCollide = false fakerleg.Anchored = true | |
318 | fakelleg.CanCollide = false fakelleg.Anchored = true | |
319 | for i = 1, 50 do | |
320 | wait() | |
321 | fakehead.CFrame = fakehead.CFrame:lerp(Plrr.Character.Head.CFrame,0.125) | |
322 | faketorso.CFrame = faketorso.CFrame:lerp(Plrr.Character.Torso.CFrame,0.125) | |
323 | fakerarm.CFrame = fakerarm.CFrame:lerp(Plrr.Character:FindFirstChild("Right Arm").CFrame,0.125) | |
324 | fakelarm.CFrame = fakelarm.CFrame:lerp(Plrr.Character:FindFirstChild("Left Arm").CFrame,0.125) | |
325 | fakerleg.CFrame = fakerleg.CFrame:lerp(Plrr.Character:FindFirstChild("Right Leg").CFrame,0.125) | |
326 | fakelleg.CFrame = fakelleg.CFrame:lerp(Plrr.Character:FindFirstChild("Left Leg").CFrame,0.125) | |
327 | end | |
328 | fakehead:Destroy() faketorso:Destroy() fakerarm:Destroy() fakelarm:Destroy() fakerleg:Destroy() fakelleg:Destroy() | |
329 | for i,v in pairs(Plrr.Character:children()) do | |
330 | if v:IsA("BasePart") and v.Parent ~= E and v ~= Plrr.Character.HumanoidRootPart then | |
331 | v.Transparency = 0 | |
332 | end | |
333 | end | |
334 | Plrr.Character.Head.face.Transparency = 0 | |
335 | ws = 18 | |
336 | Boom = false | |
337 | end | |
338 | Mouse.KeyDown:Connect(function(kkk) | |
339 | if kkk == "e" and Boom == false then | |
340 | Explosion() | |
341 | end | |
342 | end) | |
343 | ||
344 | while true do | |
345 | wait() | |
346 | for i,v in pairs(Plrr.Character:children()) do | |
347 | if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Hair") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Graphic Shirt") then | |
348 | v:Destroy() | |
349 | end | |
350 | end | |
351 | for i,v in pairs(Plrr.Character:children()) do | |
352 | if v:IsA("BasePart") and v.Parent ~= E and Boom == false then | |
353 | v.BrickColor = BrickColor.new("Shamrock") | |
354 | v.Material = "Marble" | |
355 | end | |
356 | end | |
357 | if Plrr.Character.Head.face.Texture ~= "http://www.roblox.com/asset/?id=2582561835" then | |
358 | Plrr.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=2582561835" | |
359 | end | |
360 | if Plrr.Character.Head:FindFirstChild("Mesh") ~= nil then | |
361 | Plrr.Character.Head:FindFirstChild("Mesh"):Destroy() | |
362 | Plrr.Character.Head.Size = Vector3.new(1.25,1.25,1.25) | |
363 | end | |
364 | Sinn=Sinn+(2/3) | |
365 | local h,p = workspace:FindPartOnRay(Ray.new(Plrr.Character.HumanoidRootPart.Position, (CFrame.new(Plrr.Character.HumanoidRootPart.Position,Plrr.Character.HumanoidRootPart.Position+Vector3.new(0,-1,0))).lookVector.unit * 4), Plrr.Character) | |
366 | if (Plrr.Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 1 and h ~= nil then | |
367 | - | if (Plrr.Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude < 1 and h ~= nil then |
367 | + | |
368 | Plrr.Character.HumanoidRootPart.RootJoint.C0 = Plrr.Character.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,0+0.075*math.sin(Sinn/12),0)*CFrame.Angles(math.rad(80),math.rad(180),0),1/3) | |
369 | Plrr.Character.Torso["Right Hip"].C0 = Plrr.Character.Torso["Right Hip"].C0:lerp(CFrame.new(1,-1-0.075*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(10),math.rad(80),0),1/3) | |
370 | Plrr.Character.Torso["Left Hip"].C0 = Plrr.Character.Torso["Left Hip"].C0:lerp(CFrame.new(-1,-1-0.075*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(10),math.rad(-80),0),1/3) | |
371 | Plrr.Character.Torso["Right Shoulder"].C0 = Plrr.Character.Torso["Right Shoulder"].C0:lerp(CFrame.new(1,-1.65-0.075*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(10),math.rad(-80),0),1/3) | |
372 | Plrr.Character.Torso["Left Shoulder"].C0 = Plrr.Character.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1,-1.65-0.075*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(10),math.rad(80),0),1/3) | |
373 | elseif (Plrr.Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 and h ~= nil then | |
374 | Plrr.Character.Torso["Neck"].C0 = Plrr.Character.Torso["Neck"].C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(95-5*math.sin(Sinn/12)),math.rad(180+2.5*math.sin(Sinn/12)),math.rad(0-2.5*math.sin(Sinn/12))),1/3) | |
375 | Plrr.Character.HumanoidRootPart.RootJoint.C0 = Plrr.Character.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,0+0.025*math.sin(Sinn/12),0)*CFrame.Angles(math.rad(80+2.5*math.sin(Sinn/12)),math.rad(180-2.5*math.sin(Sinn/12)),math.rad(0+2.5*math.sin(Sinn/12))),1/3) | |
376 | Plrr.Character.Torso["Right Hip"].C0 = Plrr.Character.Torso["Right Hip"].C0:lerp(CFrame.new(1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(10-25*math.sin(Sinn/3)),math.rad(80-5*math.sin(Sinn/3)),0),1/3) | |
377 | Plrr.Character.Torso["Left Hip"].C0 = Plrr.Character.Torso["Left Hip"].C0:lerp(CFrame.new(-1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(10+25*math.sin(Sinn/3)),math.rad(-80+5*math.sin(Sinn/3)),0),1/3) | |
378 | Plrr.Character.Torso["Right Shoulder"].C0 = Plrr.Character.Torso["Right Shoulder"].C0:lerp(CFrame.new(1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(10+25*math.sin(Sinn/3)),math.rad(-80+5*math.sin(Sinn/3)),0),1/3) | |
379 | Plrr.Character.Torso["Left Shoulder"].C0 = Plrr.Character.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(10-25*math.sin(Sinn/3)),math.rad(80-5*math.sin(Sinn/3)),0),1/3) | |
380 | elseif Plrr.Character.HumanoidRootPart.Velocity.y > 1 and h == nil then | |
381 | Plrr.Character.Torso["Neck"].C0 = Plrr.Character.Torso["Neck"].C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(85-5*math.sin(Sinn/12)),math.rad(180),math.rad(0)),1/3) | |
382 | Plrr.Character.HumanoidRootPart.RootJoint.C0 = Plrr.Character.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,0+0.025*math.sin(Sinn/12),0)*CFrame.Angles(math.rad(90+2.5*math.sin(Sinn/12)),math.rad(180),math.rad(0)),1/3) | |
383 | Plrr.Character.Torso["Right Hip"].C0 = Plrr.Character.Torso["Right Hip"].C0:lerp(CFrame.new(1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(0+5*math.sin(Sinn/3)),math.rad(70),0),1/3) | |
384 | Plrr.Character.Torso["Left Hip"].C0 = Plrr.Character.Torso["Left Hip"].C0:lerp(CFrame.new(-1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(0+5*math.sin(Sinn/3)),math.rad(-70),0),1/3) | |
385 | Plrr.Character.Torso["Right Shoulder"].C0 = Plrr.Character.Torso["Right Shoulder"].C0:lerp(CFrame.new(1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(20-5*math.sin(Sinn/3)),math.rad(-70),0),1/3) | |
386 | Plrr.Character.Torso["Left Shoulder"].C0 = Plrr.Character.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(20-5*math.sin(Sinn/3)),math.rad(70),0),1/3) | |
387 | elseif Plrr.Character.HumanoidRootPart.Velocity.y -1 and h == nil then | |
388 | - | elseif Plrr.Character.HumanoidRootPart.Velocity.y < -1 and h == nil then |
388 | + | |
389 | Plrr.Character.HumanoidRootPart.RootJoint.C0 = Plrr.Character.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,0+0.025*math.sin(Sinn/12),0)*CFrame.Angles(math.rad(85+2.5*math.sin(Sinn/12)),math.rad(180),math.rad(0)),1/3) | |
390 | Plrr.Character.Torso["Right Hip"].C0 = Plrr.Character.Torso["Right Hip"].C0:lerp(CFrame.new(1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(35+5*math.sin(Sinn/3)),math.rad(85),0),1/3) | |
391 | Plrr.Character.Torso["Left Hip"].C0 = Plrr.Character.Torso["Left Hip"].C0:lerp(CFrame.new(-1,-1-0.025*math.sin(Sinn/12),-0.5)*CFrame.Angles(math.rad(35+5*math.sin(Sinn/3)),math.rad(-85),0),1/3) | |
392 | Plrr.Character.Torso["Right Shoulder"].C0 = Plrr.Character.Torso["Right Shoulder"].C0:lerp(CFrame.new(1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(-35-5*math.sin(Sinn/3)),math.rad(-85),0),1/3) | |
393 | Plrr.Character.Torso["Left Shoulder"].C0 = Plrr.Character.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1,-1.65-0.025*math.sin(Sinn/12),0.4)*CFrame.Angles(math.rad(-35-5*math.sin(Sinn/3)),math.rad(85),0),1/3) | |
394 | end | |
395 | for _, c in pairs(Plrr.Character:GetChildren()) do if c:IsA("BasePart") and c ~= Plrr.Character.HumanoidRootPart then c.Anchored = false end end Plrr.Character.Humanoid.WalkSpeed = ws | |
396 | Plrr.Character.Humanoid.PlatformStand=false Plrr.Character.Humanoid.MaxHealth = 200 Plrr.Character.Humanoid.DisplayDistanceType = "None" | |
397 | if Plrr.Character:FindFirstChildOfClass("ForceField")then Plrr.Character:FindFirstChildOfClass("ForceField").Visible=false else InstanceNW("ForceField",{Parent=Plrr.Character,Name=""})end | |
398 | Plrr.Character.Humanoid:SetStateEnabled("GettingUp",true)Plrr.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, true)Plrr.Character.Humanoid:SetStateEnabled("Ragdoll",false) Plrr.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) | |
399 | end |