SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | local Mouse = Player:GetMouse() | |
68 | local UIS = game:GetService("UserInputService") | |
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | --Since InputObject is a client-side instance, we create and pass table instead | |
72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then | |
95 | return typeof(s[k])=="function" | |
96 | and function(_,...)return s[k](s,...)end or s[k] | |
97 | end | |
98 | end, | |
99 | __newindex = function(self,k,v) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then s[k]=v end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return rawget(self,s) or _rg:GetService(s) | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | RunService = FakeService({ | |
120 | _btrs = {}, | |
121 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
122 | BindToRenderStep = function(self,name,_,fun) | |
123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
124 | end, | |
125 | UnbindFromRenderStep = function(self,name) | |
126 | self._btrs[name]:Disconnect() | |
127 | end, | |
128 | },"RunService") | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | FakeService(g,game) | |
133 | --Changing owner to fake player object to support owner:GetMouse() | |
134 | game,owner = g,g.Players.LocalPlayer | |
135 | end | |
136 | script.Parent = workspace.CurrentCamera | |
137 | local plr = game:GetService("Players").LocalPlayer | |
138 | ||
139 | local tool = Instance.new("Tool",plr:WaitForChild("Backpack")) | |
140 | tool.Grip = CFrame.new(0,-0.2,-1.6) * CFrame.Angles(math.rad(100),math.rad(180),math.rad(0)) | |
141 | tool.Name = "bluE" | |
142 | ||
143 | local part = Instance.new("Part",tool) | |
144 | part.Name = "Handle" | |
145 | part.Size = Vector3.new(4,6,4) | |
146 | part.TopSurface = "Smooth" | |
147 | part.BottomSurface = "Smooth" | |
148 | part.CanCollide = false | |
149 | part:BreakJoints() | |
150 | ||
151 | local mesh = Instance.new("SpecialMesh",part) | |
152 | mesh.MeshId = "rbxassetid://24342877" --mesh.MeshId = "rbxassetid://132920499" | |
153 | mesh.TextureId = "rbxassetid://139521211" --"http://www.roblox.com/asset/?id=134479421" | |
154 | mesh.Scale = Vector3.new(2,2,2) | |
155 | ||
156 | local sound = Instance.new("Sound",part) | |
157 | sound.SoundId = "rbxassetid://148862502" | |
158 | sound.Volume = 10 | |
159 | ||
160 | local sound2 = Instance.new("Sound",part) | |
161 | sound2.SoundId = "rbxassetid://280667448" | |
162 | sound2.Volume = 5 | |
163 | ||
164 | local sound3 = Instance.new("Sound",part) | |
165 | sound3.SoundId = "rbxassetid://198973822" | |
166 | sound3.Volume = 10 | |
167 | ||
168 | local sound4 = Instance.new("Sound",part) | |
169 | sound4.SoundId = "rbxassetid://258057783" | |
170 | sound4.Volume = 10 | |
171 | ||
172 | local sound5 = Instance.new("Sound",part) | |
173 | sound5.SoundId = "rbxassetid://130932305" | |
174 | sound5.Volume = 10 | |
175 | ||
176 | local sound6 = Instance.new("Sound",part) | |
177 | sound6.SoundId = "rbxassetid://906084456" | |
178 | sound6.Volume = 10 | |
179 | sound6.TimePosition = 2 | |
180 | ||
181 | function firstHum(target) | |
182 | for i,v in pairs(target:GetChildren()) do | |
183 | if v:IsA("Humanoid") then | |
184 | return v | |
185 | end | |
186 | end | |
187 | return nil | |
188 | end | |
189 | ||
190 | local slap = false | |
191 | local cd = false | |
192 | ||
193 | plr:GetMouse().Button1Down:connect(function() | |
194 | if tool.Parent == plr.Character then | |
195 | if slap == false then | |
196 | slap = true | |
197 | sound2:Play() | |
198 | local str = Instance.new("StringValue") | |
199 | str.Name = "toolanim" | |
200 | str.Value = "Slash" | |
201 | str.Parent = tool | |
202 | wait(1) | |
203 | slap = false | |
204 | end | |
205 | end | |
206 | end) | |
207 | ||
208 | part.Touched:connect(function(hit) | |
209 | if slap == true then | |
210 | if cd == false then | |
211 | if not hit:IsDescendantOf(plr.Character) then | |
212 | if hit.Parent:IsA("Model") then | |
213 | local fhum = firstHum(hit.Parent) | |
214 | if fhum then | |
215 | cd = true | |
216 | fhum.PlatformStand = true | |
217 | sound:Play() | |
218 | local con1 | |
219 | con1 = game:GetService("RunService").Heartbeat:connect(function() | |
220 | fhum.PlatformStand = true | |
221 | end) | |
222 | wait(0.1) | |
223 | local vel = Instance.new("BodyVelocity",hit) | |
224 | vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50 | |
225 | local function makeballlimb(attachone, attachtwo, upperang, lowang, twist) | |
226 | local constraint = Instance.new("BallSocketConstraint", humanoid.Parent) | |
227 | constraint.Attachment0 = attachone | |
228 | constraint.Attachment1 = attachtwo | |
229 | constraint.LimitsEnabled = true | |
230 | constraint.TwistLimitsEnabled = true | |
231 | constraint.TwistLowerAngle = lowang | |
232 | constraint.TwistUpperAngle = upperang | |
233 | constraint.UpperAngle = twist | |
234 | end | |
235 | local function makehingelimb(attachone, attachtwo, upperang, lowang) | |
236 | local constraint = Instance.new("HingeConstraint", humanoid.Parent) | |
237 | constraint.Attachment0 = attachone | |
238 | constraint.Attachment1 = attachtwo | |
239 | constraint.LimitsEnabled = true | |
240 | constraint.LowerAngle = lowang | |
241 | constraint.UpperAngle = upperang | |
242 | end | |
243 | for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player | |
244 | if v.ClassName == "Accessory" then | |
245 | local findhandle = v:findFirstChild("Handle") --finding handle in accesorry | |
246 | if findhandle then | |
247 | local attach = findhandle:findFirstChildOfClass("Attachment") | |
248 | for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player | |
249 | if w.Name == "UpperTorso" or w.Name == "Head" then | |
250 | attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso | |
251 | end | |
252 | end | |
253 | if attach and attach1 then | |
254 | local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld | |
255 | constraint.Attachment0 = attach | |
256 | constraint.Attachment1 = attach1 | |
257 | constraint.LimitsEnabled = true | |
258 | constraint.LowerAngle = 0 | |
259 | constraint.UpperAngle = 0 | |
260 | end | |
261 | end | |
262 | end | |
263 | end | |
264 | if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then | |
265 | local attachment = Instance.new("Attachment", humanoid.Parent.Head) | |
266 | attachment.Position = Vector3.new(0, -0.5, 0) | |
267 | attachment.Name = "lol" | |
268 | attachment.Visible = false | |
269 | humanoid.Parent.UpperTorso.NeckAttachment.Visible = false | |
270 | humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0) | |
271 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent) | |
272 | ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment | |
273 | ball.Attachment1 = attachment | |
274 | ball.LimitsEnabled = true | |
275 | ball.TwistLimitsEnabled = true | |
276 | ball.UpperAngle = 40 | |
277 | ball.Restitution = 0.5 | |
278 | ball.TwistUpperAngle = 40 | |
279 | ball.TwistLowerAngle = -40 | |
280 | local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso) | |
281 | collidepartofleftleg.Name = "Bone" | |
282 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
283 | collidepartofleftleg.Transparency = 1 | |
284 | collidepartofleftleg:BreakJoints() | |
285 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
286 | weeld.Part0 = collidepartofleftleg | |
287 | weeld.Part1 = humanoid.Parent["Head"] | |
288 | if humanoid.Parent.Head:findFirstChild("Neck") then | |
289 | humanoid.Parent.Head.Neck:destroy() | |
290 | end | |
291 | if humanoid.Parent.Head:findFirstChild("face") then | |
292 | humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460" | |
293 | end | |
294 | end | |
295 | local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg") | |
296 | local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg") | |
297 | -- | |
298 | local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg") | |
299 | local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg") | |
300 | -- | |
301 | local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm") | |
302 | local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm") | |
303 | -- | |
304 | local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm") | |
305 | local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm") | |
306 | --Foot & Hands-- | |
307 | ||
308 | local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot") | |
309 | local RightFoot = humanoid.Parent:findFirstChild("RightFoot") | |
310 | -- | |
311 | local LeftHand = humanoid.Parent:findFirstChild("LeftHand") | |
312 | local RightHand = humanoid.Parent:findFirstChild("RightHand") | |
313 | ||
314 | --END-- | |
315 | --TORSOS-- | |
316 | ||
317 | local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso") | |
318 | local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso") | |
319 | ||
320 | --END-- | |
321 | if LowerTorso then | |
322 | if LeftUpperLeg then | |
323 | makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90) | |
324 | end | |
325 | if RightUpperLeg then | |
326 | makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90) | |
327 | end | |
328 | if LeftLowerLeg then | |
329 | makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90) | |
330 | end | |
331 | if RightLowerLeg then | |
332 | makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90) | |
333 | end | |
334 | if LeftFoot then | |
335 | makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30) | |
336 | end | |
337 | if RightFoot then | |
338 | makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30) | |
339 | end | |
340 | if UpperTorso then | |
341 | makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30) | |
342 | end | |
343 | end | |
344 | if UpperTorso then | |
345 | local vel = Instance.new("BodyVelocity", UpperTorso) | |
346 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
347 | vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10 | |
348 | game.Debris:AddItem(vel, 0.1) | |
349 | local hitsound = Instance.new("Sound", UpperTorso) | |
350 | hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502" | |
351 | hitsound:Play() | |
352 | hitsound.Volume = math.random(5,10) | |
353 | local canhit = true | |
354 | local hitval = 15 | |
355 | local uptor = humanoid.Parent.UpperTorso | |
356 | if RightUpperArm then | |
357 | makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180) | |
358 | end | |
359 | if RightLowerArm then | |
360 | makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90) | |
361 | end | |
362 | if RightHand then | |
363 | makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30) | |
364 | end | |
365 | if LeftUpperArm then | |
366 | makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180) | |
367 | end | |
368 | if LeftLowerArm then | |
369 | makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90) | |
370 | end | |
371 | if LeftHand then | |
372 | makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30) | |
373 | end | |
374 | end | |
375 | else | |
376 | humanoid.Parent.Archivable = true | |
377 | humanoid.PlatformStand = true | |
378 | local clone = humanoid.Parent:Clone() | |
379 | clone.Parent = workspace | |
380 | game.Debris:AddItem(clone, 60) | |
381 | for i,v in pairs(clone:GetChildren()) do | |
382 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
383 | v:Remove() | |
384 | end | |
385 | for i,p in pairs(v:GetChildren()) do | |
386 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
387 | p:Remove() | |
388 | end | |
389 | end | |
390 | end | |
391 | for i,t in pairs(humanoid.Parent:GetChildren()) do | |
392 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
393 | t:Remove() | |
394 | end | |
395 | end | |
396 | local vel = Instance.new("BodyVelocity", clone.Torso) | |
397 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
398 | vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15 | |
399 | game.Debris:AddItem(vel, 0.1) | |
400 | local hitsound = Instance.new("Sound", clone.Torso) | |
401 | hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502" | |
402 | hitsound:Play() | |
403 | hitsound.Volume = math.random(5,10) | |
404 | vel = Instance.new("BodyVelocity", clone.Torso) | |
405 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
406 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
407 | using = false | |
408 | hit = Instance.new("Sound", clone.Torso) | |
409 | hit.SoundId = "rbxassetid://260430060" | |
410 | hit.Volume = 0 | |
411 | hit1 = Instance.new("Sound", clone.Torso) | |
412 | hit1.SoundId = "rbxassetid://138087186" | |
413 | hit1.Volume = 0 | |
414 | hit2 = Instance.new("Sound", clone.Torso) | |
415 | hit2.SoundId = "rbxassetid://131237241" | |
416 | hit2.Volume = 0 | |
417 | hit3 = Instance.new("Sound", clone.Torso) | |
418 | hit3.SoundId = "rbxassetid://278062209" | |
419 | hit3.Volume = 0 | |
420 | hit3.TimePosition = 0.33 | |
421 | ded = Instance.new("Sound", clone.Torso) | |
422 | ded.SoundId = "rbxassetid://418892870" | |
423 | ded.Volume = 0 | |
424 | local leftarm = clone:findFirstChild("Left Arm") | |
425 | local rightrm = clone:findFirstChild("Right Arm") | |
426 | local leftleg = clone:findFirstChild("Left Leg") | |
427 | local rightleg = clone:findFirstChild("Right Leg") | |
428 | local head = clone:findFirstChild("Head") | |
429 | for i, g in pairs(humanoid.Parent:GetChildren()) do | |
430 | if g.ClassName == "Part" then | |
431 | g:destroy() | |
432 | end | |
433 | end | |
434 | for i, h in pairs(humanoid.Parent:GetChildren()) do | |
435 | if h.ClassName == "Accesory" then | |
436 | h:destroy() | |
437 | end | |
438 | end | |
439 | for z,x in pairs(clone:GetChildren()) do | |
440 | if x.ClassName == "Accessory" then | |
441 | local handle = x:findFirstChild("Handle") | |
442 | if handle then | |
443 | local attachment = handle:findFirstChildOfClass("Attachment") | |
444 | if attachment then | |
445 | for q,w in pairs(clone:GetChildren()) do | |
446 | if w.Name == "Torso" or w.Name == "Head" then | |
447 | local anotherone = w:findFirstChild(attachment.Name) | |
448 | if attachment and anotherone then | |
449 | local constraint = Instance.new("HingeConstraint", clone) --making fake weld | |
450 | constraint.Attachment0 = attachment | |
451 | constraint.Attachment1 = anotherone | |
452 | constraint.LimitsEnabled = true | |
453 | constraint.LowerAngle = 0 | |
454 | constraint.UpperAngle = 0 | |
455 | end | |
456 | end | |
457 | end | |
458 | end | |
459 | end | |
460 | end | |
461 | end | |
462 | if head and clone.Torso:findFirstChild("NeckAttachment") then | |
463 | local attachment = Instance.new("Attachment", clone.Head) | |
464 | attachment.Position = Vector3.new(0, -0.5, 0) | |
465 | attachment.Name = "lol" | |
466 | attachment.Visible = false | |
467 | clone.Torso.NeckAttachment.Visible = false | |
468 | clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
469 | local ball = Instance.new("BallSocketConstraint", clone) | |
470 | ball.Attachment0 = clone.Torso.NeckAttachment | |
471 | ball.Attachment1 = attachment | |
472 | ball.LimitsEnabled = true | |
473 | ball.TwistLimitsEnabled = true | |
474 | ball.UpperAngle = 90 | |
475 | ball.Restitution = 0.5 | |
476 | ball.TwistUpperAngle = 90 | |
477 | ball.TwistLowerAngle = -90 | |
478 | local collidepartofleftleg = Instance.new("Part", clone.Torso) | |
479 | collidepartofleftleg.Name = "Bone" | |
480 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
481 | collidepartofleftleg.Transparency = 1 | |
482 | collidepartofleftleg:BreakJoints() | |
483 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
484 | weeld.Part0 = collidepartofleftleg | |
485 | weeld.Part1 = clone["Head"] | |
486 | end | |
487 | if leftleg ~= nil then | |
488 | leftleg:BreakJoints() | |
489 | local glue = Instance.new("Glue", clone.Torso) | |
490 | glue.Part0 = clone.Torso | |
491 | glue.Part1 = leftleg | |
492 | glue.Name = "Left leg" | |
493 | local collider = Instance.new("Part", leftleg) | |
494 | collider.Position = Vector3.new(0,999,0) | |
495 | collider.Size = Vector3.new(1.5, 1, 1) | |
496 | collider.Shape = "Cylinder" | |
497 | local weld = Instance.new("Weld", collider) | |
498 | weld.Part0 = leftleg | |
499 | weld.Part1 = collider | |
500 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
501 | collider.TopSurface = "Smooth" | |
502 | collider.BottomSurface = "Smooth" | |
503 | collider.formFactor = "Symmetric" | |
504 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
505 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
506 | collider.Transparency = 1 | |
507 | end | |
508 | ------------ | |
509 | if rightleg ~= nil then | |
510 | rightleg:BreakJoints() | |
511 | local glue1 = Instance.new("Glue", clone.Torso) | |
512 | glue1.Part0 = clone.Torso | |
513 | glue1.Part1 = rightleg | |
514 | glue1.Name = "Right leg" | |
515 | local collider1 = Instance.new("Part", rightleg) | |
516 | collider1.Position = Vector3.new(0,999,0) | |
517 | collider1.Size = Vector3.new(1.5, 1, 1) | |
518 | collider1.Shape = "Cylinder" | |
519 | local weld1 = Instance.new("Weld", collider1) | |
520 | weld1.Part0 = rightleg | |
521 | weld1.Part1 = collider1 | |
522 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
523 | collider1.TopSurface = "Smooth" | |
524 | collider1.BottomSurface = "Smooth" | |
525 | collider1.formFactor = "Symmetric" | |
526 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
527 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
528 | collider1.Transparency = 1 | |
529 | end | |
530 | ------------ | |
531 | if rightrm ~= nil then | |
532 | rightrm:BreakJoints() | |
533 | rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0) | |
534 | local glue11 = Instance.new("Glue", clone.Torso) | |
535 | glue11.Part0 = clone.Torso | |
536 | glue11.Part1 = rightrm | |
537 | glue11.Name = "Right shoulder" | |
538 | local collider11 = Instance.new("Part", rightrm) | |
539 | collider11.Position = Vector3.new(0,9999,0) | |
540 | collider11.Size = Vector3.new(1.5,1,1) | |
541 | collider11.Shape = "Cylinder" | |
542 | local weld11 = Instance.new("Weld", collider11) | |
543 | weld11.Part0 = rightrm | |
544 | weld11.Part1 = collider11 | |
545 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
546 | collider11.TopSurface = "Smooth" | |
547 | collider11.BottomSurface = "Smooth" | |
548 | collider11.formFactor = "Symmetric" | |
549 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
550 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
551 | collider11.Transparency = 1 | |
552 | end | |
553 | ------------ | |
554 | if leftarm ~= nil then | |
555 | leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0) | |
556 | leftarm:BreakJoints() | |
557 | local glue111 = Instance.new("Glue", clone.Torso) | |
558 | glue111.Part0 = clone.Torso | |
559 | glue111.Part1 = leftarm | |
560 | glue111.Name = "Left shoulder" | |
561 | local collider111 = Instance.new("Part", leftarm) | |
562 | collider111.Position = Vector3.new(0,9999,0) | |
563 | collider111.Size = Vector3.new(1.5,1,1) | |
564 | collider111.Shape = "Cylinder" | |
565 | local weld111 = Instance.new("Weld", collider111) | |
566 | weld111.Part0 = leftarm | |
567 | weld111.Part1 = collider111 | |
568 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
569 | collider111.TopSurface = "Smooth" | |
570 | collider111.BottomSurface = "Smooth" | |
571 | collider111.formFactor = "Symmetric" | |
572 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
573 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
574 | collider111.Transparency = 1 | |
575 | ---------------- | |
576 | sensoring = Instance.new("Part", clone.Torso) | |
577 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
578 | sensoring.CanCollide = false | |
579 | sensoring.Position = clone.Torso.Position | |
580 | local welder = Instance.new("Weld", sensoring) | |
581 | welder.Part0 = clone.Torso | |
582 | welder.Part1 = sensoring | |
583 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
584 | sensoring.Transparency = 1 | |
585 | ----------------- | |
586 | sensoring1 = Instance.new("Part", clone.Torso) | |
587 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
588 | sensoring1.CanCollide = false | |
589 | sensoring1.Position = clone.Torso.Position | |
590 | local welder1 = Instance.new("Weld", sensoring) | |
591 | welder1.Part0 = clone.Torso | |
592 | welder1.Part1 = sensoring1 | |
593 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
594 | sensoring1.Transparency = 1 | |
595 | end | |
596 | clone.Name = humanoid.Parent.Name.." (PANNED)" | |
597 | ded:Play() | |
598 | vel:destroy() | |
599 | wait(0.5) | |
600 | local function touch() | |
601 | if not using then | |
602 | using = true | |
603 | local Math = math.random(1,4) | |
604 | if Math == 1 then | |
605 | hit:Play() | |
606 | end | |
607 | if Math == 2 then | |
608 | hit1:Play() | |
609 | end | |
610 | if Math == 3 then | |
611 | hit2:Play() | |
612 | end | |
613 | if Math == 4 then | |
614 | hit3:Play() | |
615 | end | |
616 | wait(0.1) | |
617 | using = false | |
618 | end | |
619 | end | |
620 | sensoring.Touched:connect(touch) | |
621 | sensoring1.Touched:connect(touch) | |
622 | while true do | |
623 | if clone:findFirstChild("Head") then | |
624 | clone.Head.CanCollide = false | |
625 | end | |
626 | game:GetService("RunService").Stepped:wait() | |
627 | end | |
628 | end | |
629 | end | |
630 | end | |
631 | end | |
632 | Part0.Touched:connect(hittie) | |
633 | function ragdoll() | |
634 | game.Players.LocalPlayer.Character.Archivable = true | |
635 | clone = game.Players.LocalPlayer.Character:Clone() | |
636 | clone.Parent = workspace | |
637 | for i,v in pairs(clone:GetChildren()) do | |
638 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
639 | v:Remove() | |
640 | end | |
641 | for i,p in pairs(v:GetChildren()) do | |
642 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
643 | p:Remove() | |
644 | end | |
645 | end | |
646 | end | |
647 | for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
648 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
649 | t:Remove() | |
650 | end | |
651 | end | |
652 | vel = Instance.new("BodyVelocity", clone.Torso) | |
653 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
654 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
655 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608" | |
656 | using = false | |
657 | hit = Instance.new("Sound", clone.Torso) | |
658 | hit.SoundId = "rbxassetid://260430060" | |
659 | hit.Volume = 0 | |
660 | hit1 = Instance.new("Sound", clone.Torso) | |
661 | hit1.SoundId = "rbxassetid://138087186" | |
662 | hit1.Volume = 0 | |
663 | hit2 = Instance.new("Sound", clone.Torso) | |
664 | hit2.SoundId = "rbxassetid://131237241" | |
665 | hit2.Volume = 0 | |
666 | hit3 = Instance.new("Sound", clone.Torso) | |
667 | hit3.SoundId = "rbxassetid://278062209" | |
668 | hit3.Volume = 0 | |
669 | hit3.TimePosition = 0.33 | |
670 | ded = Instance.new("Sound", clone.Torso) | |
671 | ded.SoundId = "rbxassetid://337800380" | |
672 | ded.Volume = 5 | |
673 | local leftarm = clone:findFirstChild("Left Arm") | |
674 | local rightrm = clone:findFirstChild("Right Arm") | |
675 | local leftleg = clone:findFirstChild("Left Leg") | |
676 | local rightleg = clone:findFirstChild("Right Leg") | |
677 | local head = clone:findFirstChild("Head") | |
678 | for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
679 | if g.ClassName == "Part" then | |
680 | g:destroy() | |
681 | end | |
682 | end | |
683 | for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
684 | if h.ClassName == "Accesory" then | |
685 | h:destroy() | |
686 | end | |
687 | end | |
688 | game.Workspace.CurrentCamera.CameraSubject = head | |
689 | if head then | |
690 | local attachment = Instance.new("Attachment", clone.Head) | |
691 | attachment.Position = Vector3.new(0, -0.5, 0) | |
692 | attachment.Name = "lol" | |
693 | attachment.Visible = false | |
694 | clone.Torso.NeckAttachment.Visible = false | |
695 | clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
696 | local ball = Instance.new("BallSocketConstraint", clone) | |
697 | ball.Attachment0 = clone.Torso.NeckAttachment | |
698 | ball.Attachment1 = attachment | |
699 | ball.LimitsEnabled = true | |
700 | ball.TwistLimitsEnabled = true | |
701 | ball.UpperAngle = 90 | |
702 | ball.Restitution = 0.5 | |
703 | ball.TwistUpperAngle = 90 | |
704 | ball.TwistLowerAngle = -90 | |
705 | local collidepartofleftleg = Instance.new("Part", clone.Torso) | |
706 | collidepartofleftleg.Name = "Bone" | |
707 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
708 | collidepartofleftleg.Transparency = 1 | |
709 | collidepartofleftleg:BreakJoints() | |
710 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
711 | weeld.Part0 = collidepartofleftleg | |
712 | weeld.Part1 = clone["Head"] | |
713 | end | |
714 | if leftleg ~= nil then | |
715 | local glue = Instance.new("Glue", clone.Torso) | |
716 | glue.Part0 = clone.Torso | |
717 | glue.Part1 = leftleg | |
718 | glue.Name = "Left leg" | |
719 | local collider = Instance.new("Part", leftleg) | |
720 | collider.Position = Vector3.new(0,999,0) | |
721 | collider.Size = Vector3.new(1.5, 1, 1) | |
722 | collider.Shape = "Cylinder" | |
723 | local weld = Instance.new("Weld", collider) | |
724 | weld.Part0 = leftleg | |
725 | weld.Part1 = collider | |
726 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
727 | collider.TopSurface = "Smooth" | |
728 | collider.BottomSurface = "Smooth" | |
729 | collider.formFactor = "Symmetric" | |
730 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
731 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
732 | collider.Transparency = 1 | |
733 | end | |
734 | ------------ | |
735 | if rightleg ~= nil then | |
736 | local glue1 = Instance.new("Glue", clone.Torso) | |
737 | glue1.Part0 = clone.Torso | |
738 | glue1.Part1 = rightleg | |
739 | glue1.Name = "Right leg" | |
740 | local collider1 = Instance.new("Part", rightleg) | |
741 | collider1.Position = Vector3.new(0,999,0) | |
742 | collider1.Size = Vector3.new(1.5, 1, 1) | |
743 | collider1.Shape = "Cylinder" | |
744 | local weld1 = Instance.new("Weld", collider1) | |
745 | weld1.Part0 = rightleg | |
746 | weld1.Part1 = collider1 | |
747 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
748 | collider1.TopSurface = "Smooth" | |
749 | collider1.BottomSurface = "Smooth" | |
750 | collider1.formFactor = "Symmetric" | |
751 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
752 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
753 | collider1.Transparency = 1 | |
754 | end | |
755 | ------------ | |
756 | if rightrm ~= nil then | |
757 | local glue11 = Instance.new("Glue", clone.Torso) | |
758 | glue11.Part0 = clone.Torso | |
759 | glue11.Part1 = rightrm | |
760 | glue11.Name = "Right shoulder" | |
761 | local collider11 = Instance.new("Part", rightrm) | |
762 | collider11.Position = Vector3.new(0,9999,0) | |
763 | collider11.Size = Vector3.new(1.5,1,1) | |
764 | collider11.Shape = "Cylinder" | |
765 | local weld11 = Instance.new("Weld", collider11) | |
766 | weld11.Part0 = rightrm | |
767 | weld11.Part1 = collider11 | |
768 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
769 | collider11.TopSurface = "Smooth" | |
770 | collider11.BottomSurface = "Smooth" | |
771 | collider11.formFactor = "Symmetric" | |
772 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
773 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
774 | collider11.Transparency = 1 | |
775 | end | |
776 | ------------ | |
777 | if leftarm ~= nil then | |
778 | local glue111 = Instance.new("Glue", clone.Torso) | |
779 | glue111.Part0 = clone.Torso | |
780 | glue111.Part1 = leftarm | |
781 | glue111.Name = "Left shoulder" | |
782 | local collider111 = Instance.new("Part", leftarm) | |
783 | collider111.Position = Vector3.new(0,9999,0) | |
784 | collider111.Size = Vector3.new(1.5,1,1) | |
785 | collider111.Shape = "Cylinder" | |
786 | local weld111 = Instance.new("Weld", collider111) | |
787 | weld111.Part0 = leftarm | |
788 | weld111.Part1 = collider111 | |
789 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
790 | collider111.TopSurface = "Smooth" | |
791 | collider111.BottomSurface = "Smooth" | |
792 | collider111.formFactor = "Symmetric" | |
793 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
794 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
795 | collider111.Transparency = 1 | |
796 | ---------------- | |
797 | sensoring = Instance.new("Part", clone.Torso) | |
798 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
799 | sensoring.CanCollide = false | |
800 | sensoring.Position = clone.Torso.Position | |
801 | local welder = Instance.new("Weld", sensoring) | |
802 | welder.Part0 = clone.Torso | |
803 | welder.Part1 = sensoring | |
804 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
805 | sensoring.Transparency = 1 | |
806 | ----------------- | |
807 | sensoring1 = Instance.new("Part", clone.Torso) | |
808 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
809 | sensoring1.CanCollide = false | |
810 | sensoring1.Position = clone.Torso.Position | |
811 | local welder1 = Instance.new("Weld", sensoring) | |
812 | welder1.Part0 = clone.Torso | |
813 | welder1.Part1 = sensoring1 | |
814 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
815 | sensoring1.Transparency = 1 | |
816 | end | |
817 | clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)" | |
818 | ded:Play() | |
819 | vel:destroy() | |
820 | wait(0.2) | |
821 | game.Debris:AddItem(clone,60) | |
822 | local function touch() | |
823 | if not using then | |
824 | using = true | |
825 | local Math = math.random(1,4) | |
826 | if Math == 1 then | |
827 | hit:Play() | |
828 | end | |
829 | if Math == 2 then | |
830 | hit1:Play() | |
831 | end | |
832 | if Math == 3 then | |
833 | hit2:Play() | |
834 | end | |
835 | if Math == 4 then | |
836 | hit3:Play() | |
837 | end | |
838 | wait(0.1) | |
839 | using = false | |
840 | end | |
841 | end | |
842 | sensoring.Touched:connect(touch) | |
843 | sensoring1.Touched:connect(touch) | |
844 | while true do | |
845 | clone.Head.CanCollide = false | |
846 | game:GetService("RunService").Stepped:wait() | |
847 | end | |
848 | end | |
849 | ||
850 | game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll) | |
851 | ||
852 | --di ent | |
853 | while true do | |
854 | if cananimate then | |
855 | if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then | |
856 | for i = 0.1,0.3 , 0.008 do | |
857 | if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then | |
858 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i) | |
859 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i) | |
860 | game:GetService("RunService").Stepped:wait() | |
861 | end | |
862 | end | |
863 | for i = 0.1,0.3 , 0.008 do | |
864 | if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then | |
865 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i) | |
866 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i) | |
867 | game:GetService("RunService").Stepped:wait() | |
868 | end | |
869 | end | |
870 | elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then | |
871 | for i = 0,1 , 0.1 do | |
872 | if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then | |
873 | weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i) | |
874 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i) | |
875 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i) | |
876 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i) | |
877 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i) | |
878 | game:GetService("RunService").RenderStepped:wait() | |
879 | end | |
880 | end | |
881 | end | |
882 | end | |
883 | wait() | |
884 | end |