View difference between Paste ID: tZPTbJnw and 3PKJepDR
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
8
--By Ruffles14
9
mouse = game.Players.LocalPlayer:GetMouse()
10
local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
11
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
12
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
13
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
14
rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
15
local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
16
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
17
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
18
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
19
lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
20
local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
21
game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
22
local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
23
humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
24
humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
25
local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
26
local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
27
headweld.Part0 = game.Players.LocalPlayer.Character.Torso
28
headweld.Part1 = game.Players.LocalPlayer.Character.Head
29
headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
30
game.Players.LocalPlayer.Character.Torso.Neck:Remove()
31
using = false
32
--Converted with ttyyuu12345's model to script plugin v4
33
function sandbox(var,func)
34
	local env = getfenv(func)
35
	local newenv = setmetatable({},{
36
		__index = function(self,k)
37
			if k=="script" then
38
				return var
39
			else
40
				return env[k]
41
			end
42
		end,
43
	})
44
	setfenv(func,newenv)
45
	return func
46
end
47
cors = {}
48
mas = Instance.new("Model",game:GetService("Lighting"))
49
Part0 = Instance.new("Part")
50
SpecialMesh1 = Instance.new("SpecialMesh")
51
Part0.Parent = mas
52
Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
53
Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
54
Part0.CFrame = CFrame.new(1.99671245, 4.08856773, -0.616976917, 0.0861581191, 0.29545939, 0.95146209, -0.99592489, 0, 0.090184398, 0.0266458243, -0.955355108, 0.294255406)
55
Part0.BottomSurface = Enum.SurfaceType.Smooth
56
Part0.TopSurface = Enum.SurfaceType.Smooth
57
Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
58
Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
59
Part0.CanCollide = false
60
SpecialMesh1.Parent = Part0
61
SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
62
SpecialMesh1.MeshType = Enum.MeshType.FileMesh
63-
SpecialMesh1.MeshId = "rbxassetid://441572308"
63+
64
for i,v in pairs(mas:GetChildren()) do
65-
SpecialMesh1.TextureId = "rbxassetid://441572332"
65+
66
	pcall(function() v:MakeJoints() end)
67
end
68
mas:Destroy()
69
for i,v in pairs(cors) do
70
	spawn(function()
71
		pcall(v)
72
	end)
73
end
74
Part0:BreakJoints()
75
cananimate = true
76
canhit = false
77
local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
78
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
79
weld.Part1 = Part0
80
weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
81
for i = 0,1 , 0.03 do
82
	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)
83
	humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
84
	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)
85
	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)
86
	game:GetService("RunService").RenderStepped:wait()
87
end
88
function swing()
89
	if not using then
90
		using = true
91
		cananimate = false
92
		for i = 0,1 , 0.045 do
93
			weld.C0 = weld.C0:lerp(CFrame.new(0.958130836, -0.815908253, -0.0419664383, 0.379335552, 0.92491132, -0.0253674984, -0.913223445, 0.378668189, 0.150445476, 0.148754537, -0.0339030921, 0.988292694),i)
94
			headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
95
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
96
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
97
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
98
			game:GetService("RunService").RenderStepped:wait()
99
		end
100
		canhit = true
101
		for i = 0,1 , 0.08 do
102
			weld.C0 = weld.C0:lerp(CFrame.new(0.968596578, -1.15575922, 0.178524971, 0.0531506836, 0.988890588, -0.13881819, -0.988834679, 0.0327400565, -0.145376131, -0.13921617, 0.144995078, 0.979589343),i)
103
			headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
104
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
105
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
106
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
107
			game:GetService("RunService").RenderStepped:wait()
108
		end
109
		canhit = false
110
		using = false
111
		cananimate = true
112
	end
113
end
114
mouse.Button1Down:connect(swing)
115
function hittie(part)
116
	if canhit then
117
		local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
118
		if humanoid then
119
			canhit = false
120
			using = false
121
			local uptor = humanoid.Parent:findFirstChild("UpperTorso")
122
			if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
123
					humanoid.Parent:BreakJoints()
124
					while humanoid.Health >= 0.001 do
125
						game:GetService("RunService").RenderStepped:wait()
126
					end
127
					if humanoid.Parent:findFirstChild("HumanoidRootPart") then
128
                        humanoid.Parent.HumanoidRootPart.CanCollide = false
129
                    end
130
                    local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
131
                        local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
132
                        constraint.Attachment0 = attachone
133
                        constraint.Attachment1 = attachtwo
134
                        constraint.LimitsEnabled = true
135
                        constraint.TwistLimitsEnabled = true
136
                        constraint.TwistLowerAngle = lowang
137
                        constraint.TwistUpperAngle = upperang
138
                        constraint.UpperAngle = twist
139
                    end
140
                    local function makehingelimb(attachone, attachtwo, upperang, lowang)
141
                        local constraint = Instance.new("HingeConstraint", humanoid.Parent)
142
                        constraint.Attachment0 = attachone
143
                        constraint.Attachment1 = attachtwo
144
                        constraint.LimitsEnabled = true
145
                        constraint.LowerAngle = lowang
146
                        constraint.UpperAngle = upperang
147
                    end
148
                    for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
149
                        if v.ClassName == "Accessory" then
150
                            local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
151
                            if findhandle then
152
                                local attach = findhandle:findFirstChildOfClass("Attachment")
153
                                for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
154
                                    if w.Name == "UpperTorso" or w.Name == "Head" then
155
                                        attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
156
                                    end
157
                                end
158
                                if attach and attach1 then
159
                                    local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
160
                                    constraint.Attachment0 = attach
161
                                    constraint.Attachment1 = attach1
162
                                    constraint.LimitsEnabled = true
163
                                    constraint.LowerAngle = 0
164
                                    constraint.UpperAngle = 0
165
                                end
166
                            end
167
                        end
168
                    end
169
                    if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
170
                                local attachment = Instance.new("Attachment", humanoid.Parent.Head)
171
                                attachment.Position = Vector3.new(0, -0.5, 0)
172
                                attachment.Name = "lol"
173
                                attachment.Visible = false
174
                                humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
175
                                humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
176
                                local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
177
                                ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
178
                                ball.Attachment1 = attachment
179
                                ball.LimitsEnabled = true
180
                                ball.TwistLimitsEnabled = true
181
                                ball.UpperAngle = 40
182
                                ball.Restitution = 0.5
183
                                ball.TwistUpperAngle = 40
184
                                ball.TwistLowerAngle = -40
185
                                local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
186
                                collidepartofleftleg.Name = "Bone"
187
                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
188
                                collidepartofleftleg.Transparency = 1
189
                                collidepartofleftleg:BreakJoints()
190
                                local weeld = Instance.new("Weld", collidepartofleftleg)
191
                                weeld.Part0 = collidepartofleftleg
192
                                weeld.Part1 = humanoid.Parent["Head"]
193
                                if humanoid.Parent.Head:findFirstChild("Neck") then
194
                                    humanoid.Parent.Head.Neck:destroy()
195
                                end
196
                                if humanoid.Parent.Head:findFirstChild("face") then
197
                                    humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
198
                                end
199
                    end
200
                    local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
201
                    local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
202
                    --
203
                    local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
204
                    local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
205
                    --
206
                    local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
207
                    local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
208
                    --
209
                    local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
210
                    local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
211
                    --Foot & Hands--
212
                   
213
                    local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
214
                    local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
215
                    --
216
                    local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
217
                    local RightHand = humanoid.Parent:findFirstChild("RightHand")
218
                   
219
                    --END--
220
                    --TORSOS--
221
                   
222
                    local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
223
                    local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
224
                   
225
                    --END--
226
                    if LowerTorso then
227
                        if LeftUpperLeg then
228
                            makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
229
                        end
230
                        if RightUpperLeg then
231
                            makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
232
                        end
233
                        if LeftLowerLeg then
234
                            makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
235
                        end
236
                        if RightLowerLeg then
237
                            makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
238
                        end
239
                        if LeftFoot then
240
                            makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
241
                        end
242
                        if RightFoot then
243
                            makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
244
                        end
245
                        if UpperTorso then
246
                            makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
247
                        end
248
                    end
249
                    if UpperTorso then
250
						local vel = Instance.new("BodyVelocity", UpperTorso)
251
                        vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
252
                        vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
253
                        game.Debris:AddItem(vel, 0.1)
254
                        local hitsound = Instance.new("Sound", UpperTorso)
255
                        hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
256
                        hitsound:Play()
257
                        hitsound.Volume = math.random(5,10)
258
                        local canhit = true
259
                        local hitval = 15
260
                        local uptor = humanoid.Parent.UpperTorso
261
                        if RightUpperArm then
262
                            makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
263
                        end
264
                        if RightLowerArm then
265
                            makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
266
                        end
267
                        if RightHand then
268
                            makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
269
                        end
270
                        if LeftUpperArm then
271
                            makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
272
                        end
273
                        if LeftLowerArm then
274
                            makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
275
                        end
276
                        if LeftHand then
277
                            makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
278
                        end
279
                    end
280
			else
281
				humanoid.Parent.Archivable = true
282
				humanoid.PlatformStand = true
283
				local clone = humanoid.Parent:Clone()
284
				clone.Parent = workspace
285
				game.Debris:AddItem(clone, 60)
286
				for i,v in pairs(clone:GetChildren()) do
287
				    if v.ClassName == "Script" or v.ClassName == "LocalScript" then
288
				        v:Remove()
289
				    end
290
				    for i,p in pairs(v:GetChildren()) do
291
				    if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
292
				        p:Remove()
293
				    end
294
				end
295
				end
296
				for i,t in pairs(humanoid.Parent:GetChildren()) do
297
				    if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
298
				        t:Remove()
299
				    end
300
				end
301
				local vel = Instance.new("BodyVelocity", clone.Torso)
302
                vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
303
                vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
304
                game.Debris:AddItem(vel, 0.1)
305
				local hitsound = Instance.new("Sound", clone.Torso)
306
                hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
307
                hitsound:Play()
308
                hitsound.Volume = math.random(5,10)
309
				vel = Instance.new("BodyVelocity", clone.Torso)
310
				vel.Velocity = clone.Torso.CFrame.lookVector * -5
311
				vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
312
				using = false
313
				hit = Instance.new("Sound", clone.Torso)
314
				hit.SoundId = "rbxassetid://260430060"
315
				hit.Volume = 0
316
				hit1 = Instance.new("Sound", clone.Torso)
317
				hit1.SoundId = "rbxassetid://138087186"
318
				hit1.Volume = 0
319
				hit2 = Instance.new("Sound", clone.Torso)
320
				hit2.SoundId = "rbxassetid://131237241"
321
				hit2.Volume = 0
322
				hit3 = Instance.new("Sound", clone.Torso)
323
				hit3.SoundId = "rbxassetid://278062209"
324
				hit3.Volume = 0
325
				hit3.TimePosition = 0.33
326
				ded = Instance.new("Sound", clone.Torso)
327
				ded.SoundId = "rbxassetid://418892870"
328
				ded.Volume = 0
329
				local leftarm = clone:findFirstChild("Left Arm")
330
				local rightrm = clone:findFirstChild("Right Arm")
331
				local leftleg = clone:findFirstChild("Left Leg")
332
				local rightleg = clone:findFirstChild("Right Leg")
333
				local head = clone:findFirstChild("Head")
334
				for i, g in pairs(humanoid.Parent:GetChildren()) do
335
				    if g.ClassName == "Part" then
336
				        g:destroy()
337
				    end
338
				end
339
				for i, h in pairs(humanoid.Parent:GetChildren()) do
340
				    if h.ClassName == "Accesory" then
341
				        h:destroy()
342
				    end
343
				end
344
				for z,x in pairs(clone:GetChildren()) do
345
                        if x.ClassName == "Accessory" then
346
                            local handle = x:findFirstChild("Handle")
347
                            if handle then
348
                                local attachment = handle:findFirstChildOfClass("Attachment")
349
                                if attachment then
350
                                    for q,w in pairs(clone:GetChildren()) do
351
                                        if w.Name == "Torso" or w.Name == "Head" then
352
                                            local anotherone = w:findFirstChild(attachment.Name)
353
                                            if attachment and anotherone then
354
                                                local constraint = Instance.new("HingeConstraint", clone) --making fake weld
355
                                                constraint.Attachment0 = attachment
356
                                                constraint.Attachment1 = anotherone
357
                                                constraint.LimitsEnabled = true
358
                                                constraint.LowerAngle = 0
359
                                                constraint.UpperAngle = 0
360
                                            end
361
                                        end
362
                                    end
363
                                end
364
                            end
365
                        end
366
                    end
367
				if head and clone.Torso:findFirstChild("NeckAttachment") then
368
				            local attachment = Instance.new("Attachment", clone.Head)
369
				            attachment.Position = Vector3.new(0, -0.5, 0)
370
				            attachment.Name = "lol"
371
				            attachment.Visible = false
372
				            clone.Torso.NeckAttachment.Visible = false
373
				            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
374
				            local ball = Instance.new("BallSocketConstraint", clone)
375
				            ball.Attachment0 = clone.Torso.NeckAttachment
376
				            ball.Attachment1 = attachment
377
				            ball.LimitsEnabled = true
378
				            ball.TwistLimitsEnabled = true
379
				            ball.UpperAngle = 90
380
				            ball.Restitution = 0.5
381
				            ball.TwistUpperAngle = 90
382
				            ball.TwistLowerAngle = -90
383
				            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
384
				            collidepartofleftleg.Name = "Bone"
385
				            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
386
				            collidepartofleftleg.Transparency = 1
387
				            collidepartofleftleg:BreakJoints()
388
				            local weeld = Instance.new("Weld", collidepartofleftleg)
389
				            weeld.Part0 = collidepartofleftleg
390
				            weeld.Part1 = clone["Head"]
391
				        end
392
				if leftleg ~= nil then
393
				leftleg:BreakJoints()
394
				local glue = Instance.new("Glue", clone.Torso)
395
				glue.Part0 = clone.Torso
396
				glue.Part1 = leftleg
397
				glue.Name = "Left leg"
398
				local collider = Instance.new("Part", leftleg)
399
				collider.Position = Vector3.new(0,999,0)
400
				collider.Size = Vector3.new(1.5, 1, 1)
401
				collider.Shape = "Cylinder"
402
				local weld = Instance.new("Weld", collider)
403
				weld.Part0 = leftleg
404
				weld.Part1 = collider
405
				weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
406
				collider.TopSurface = "Smooth"
407
				collider.BottomSurface = "Smooth"
408
				collider.formFactor = "Symmetric"
409
				glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
410
				glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
411
				collider.Transparency = 1
412
				end
413
				------------
414
				if rightleg ~= nil then
415
				rightleg:BreakJoints()
416
				local glue1 = Instance.new("Glue", clone.Torso)
417
				glue1.Part0 = clone.Torso
418
				glue1.Part1 = rightleg
419
				glue1.Name = "Right leg"
420
				local collider1 = Instance.new("Part", rightleg)
421
				collider1.Position = Vector3.new(0,999,0)
422
				collider1.Size = Vector3.new(1.5, 1, 1)
423
				collider1.Shape = "Cylinder"
424
				local weld1 = Instance.new("Weld", collider1)
425
				weld1.Part0 = rightleg
426
				weld1.Part1 = collider1
427
				weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
428
				collider1.TopSurface = "Smooth"
429
				collider1.BottomSurface = "Smooth"
430
				collider1.formFactor = "Symmetric"
431
				glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
432
				glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
433
				collider1.Transparency = 1
434
				end
435
				------------
436
				if rightrm ~= nil then
437
				rightrm:BreakJoints()
438
				rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
439
				local glue11 = Instance.new("Glue", clone.Torso)
440
				glue11.Part0 = clone.Torso
441
				glue11.Part1 = rightrm
442
				glue11.Name = "Right shoulder"
443
				local collider11 = Instance.new("Part", rightrm)
444
				collider11.Position = Vector3.new(0,9999,0)
445
				collider11.Size = Vector3.new(1.5,1,1)
446
				collider11.Shape = "Cylinder"
447
				local weld11 = Instance.new("Weld", collider11)
448
				weld11.Part0 = rightrm
449
				weld11.Part1 = collider11
450
				weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
451
				collider11.TopSurface = "Smooth"
452
				collider11.BottomSurface = "Smooth"
453
				collider11.formFactor = "Symmetric"
454
				glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
455
				glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
456
				collider11.Transparency = 1
457
				end
458
				------------
459
				if leftarm ~= nil then
460
				leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
461
				leftarm:BreakJoints()
462
				local glue111 = Instance.new("Glue", clone.Torso)
463
				glue111.Part0 = clone.Torso
464
				glue111.Part1 = leftarm
465
				glue111.Name = "Left shoulder"
466
				local collider111 = Instance.new("Part", leftarm)
467
				collider111.Position = Vector3.new(0,9999,0)
468
				collider111.Size = Vector3.new(1.5,1,1)
469
				collider111.Shape = "Cylinder"
470
				local weld111 = Instance.new("Weld", collider111)
471
				weld111.Part0 = leftarm
472
				weld111.Part1 = collider111
473
				weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
474
				collider111.TopSurface = "Smooth"
475
				collider111.BottomSurface = "Smooth"
476
				collider111.formFactor = "Symmetric"
477
				glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
478
				glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
479
				collider111.Transparency = 1
480
				----------------
481
				sensoring = Instance.new("Part", clone.Torso)
482
				sensoring.Size = Vector3.new(1.2,1.1,0.8)
483
				sensoring.CanCollide = false
484
				sensoring.Position = clone.Torso.Position
485
				local welder = Instance.new("Weld", sensoring)
486
				welder.Part0 = clone.Torso
487
				welder.Part1 = sensoring
488
				welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
489
				sensoring.Transparency = 1
490
				-----------------
491
				sensoring1 = Instance.new("Part", clone.Torso)
492
				sensoring1.Size = Vector3.new(1.2,1.1,0.8)
493
				sensoring1.CanCollide = false
494
				sensoring1.Position = clone.Torso.Position
495
				local welder1 = Instance.new("Weld", sensoring)
496
				welder1.Part0 = clone.Torso
497
				welder1.Part1 = sensoring1
498
				welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
499
				sensoring1.Transparency = 1
500
				end
501
				ded:Play()
502
				vel:destroy()
503
				wait(0.5)
504
				local function touch()
505-
				clone.Name = humanoid.Parent.Name.." (PANNED)"
505+
506
				        using = true
507
				        local Math = math.random(1,4)
508
				        if Math == 1 then
509
				            hit:Play()
510
				        end
511
				        if Math == 2 then
512
				            hit1:Play()
513
				        end
514
				        if Math == 3 then
515
				            hit2:Play()
516
				        end
517
				        if Math == 4 then
518
				            hit3:Play()
519
				        end
520
				        wait(0.1)
521
				        using = false
522
				    end
523
				end
524
				sensoring.Touched:connect(touch)
525
				sensoring1.Touched:connect(touch)
526
				while true do
527
					if clone:findFirstChild("Head") then
528
						clone.Head.CanCollide = false
529
				    end
530
				    game:GetService("RunService").Stepped:wait()
531
				end
532
			end
533
		end
534
	end
535
end
536
Part0.Touched:connect(hittie)
537
function ragdoll()
538
game.Players.LocalPlayer.Character.Archivable = true
539
clone = game.Players.LocalPlayer.Character:Clone()
540
clone.Parent = workspace
541
for i,v in pairs(clone:GetChildren()) do
542
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
543
		v:Remove()
544
	end
545
	for i,p in pairs(v:GetChildren()) do
546
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
547
		p:Remove()
548
	end
549
end
550
end
551
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
552
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
553
		t:Remove()
554
	end
555
end
556
vel = Instance.new("BodyVelocity", clone.Torso)
557
vel.Velocity = clone.Torso.CFrame.lookVector * -5
558
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
559
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
560
using = false
561
hit = Instance.new("Sound", clone.Torso)
562
hit.SoundId = "rbxassetid://260430060"
563
hit.Volume = 0
564
hit1 = Instance.new("Sound", clone.Torso)
565
hit1.SoundId = "rbxassetid://138087186"
566
hit1.Volume = 0
567
hit2 = Instance.new("Sound", clone.Torso)
568
hit2.SoundId = "rbxassetid://131237241"
569
hit2.Volume = 0
570
hit3 = Instance.new("Sound", clone.Torso)
571
hit3.SoundId = "rbxassetid://278062209"
572
hit3.Volume = 0
573
hit3.TimePosition = 0.33
574
ded = Instance.new("Sound", clone.Torso)
575
ded.SoundId = "rbxassetid://337800380"
576
ded.Volume = 5
577
local leftarm = clone:findFirstChild("Left Arm")
578
local rightrm = clone:findFirstChild("Right Arm")
579
local leftleg = clone:findFirstChild("Left Leg")
580
local rightleg = clone:findFirstChild("Right Leg")
581
local head = clone:findFirstChild("Head")
582
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
583
	if g.ClassName == "Part" then
584
		g:destroy()
585
	end
586
end
587
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
588
	if h.ClassName == "Accesory" then
589
		h:destroy()
590
	end
591
end
592
game.Workspace.CurrentCamera.CameraSubject = head
593
if head then
594
            local attachment = Instance.new("Attachment", clone.Head)
595
            attachment.Position = Vector3.new(0, -0.5, 0)
596
            attachment.Name = "lol"
597
            attachment.Visible = false
598
            clone.Torso.NeckAttachment.Visible = false
599
            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
600
            local ball = Instance.new("BallSocketConstraint", clone)
601
            ball.Attachment0 = clone.Torso.NeckAttachment
602
            ball.Attachment1 = attachment
603
			ball.LimitsEnabled = true
604
			ball.TwistLimitsEnabled = true
605
			ball.UpperAngle = 90
606
			ball.Restitution = 0.5
607
			ball.TwistUpperAngle = 90
608
			ball.TwistLowerAngle = -90
609
            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
610
            collidepartofleftleg.Name = "Bone"
611
            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
612
            collidepartofleftleg.Transparency = 1
613
            collidepartofleftleg:BreakJoints()
614
            local weeld = Instance.new("Weld", collidepartofleftleg)
615
            weeld.Part0 = collidepartofleftleg
616
            weeld.Part1 = clone["Head"]
617
        end
618
if leftleg ~= nil then
619
local glue = Instance.new("Glue", clone.Torso)
620
glue.Part0 = clone.Torso
621
glue.Part1 = leftleg
622
glue.Name = "Left leg"
623
local collider = Instance.new("Part", leftleg)
624
collider.Position = Vector3.new(0,999,0)
625
collider.Size = Vector3.new(1.5, 1, 1)
626
collider.Shape = "Cylinder"
627
local weld = Instance.new("Weld", collider)
628
weld.Part0 = leftleg
629
weld.Part1 = collider
630
weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
631
collider.TopSurface = "Smooth"
632
collider.BottomSurface = "Smooth"
633
collider.formFactor = "Symmetric"
634
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
635
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
636
collider.Transparency = 1
637
end
638
------------
639
if rightleg ~= nil then
640
local glue1 = Instance.new("Glue", clone.Torso)
641
glue1.Part0 = clone.Torso
642
glue1.Part1 = rightleg
643
glue1.Name = "Right leg"
644
local collider1 = Instance.new("Part", rightleg)
645
collider1.Position = Vector3.new(0,999,0)
646
collider1.Size = Vector3.new(1.5, 1, 1)
647
collider1.Shape = "Cylinder"
648
local weld1 = Instance.new("Weld", collider1)
649
weld1.Part0 = rightleg
650
weld1.Part1 = collider1
651
weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
652
collider1.TopSurface = "Smooth"
653
collider1.BottomSurface = "Smooth"
654
collider1.formFactor = "Symmetric"
655
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
656
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
657
collider1.Transparency = 1
658
end
659
------------
660
if rightrm ~= nil then
661
local glue11 = Instance.new("Glue", clone.Torso)
662
glue11.Part0 = clone.Torso
663
glue11.Part1 = rightrm
664
glue11.Name = "Right shoulder"
665
local collider11 = Instance.new("Part", rightrm)
666
collider11.Position = Vector3.new(0,9999,0)
667
collider11.Size = Vector3.new(1.5,1,1)
668
collider11.Shape = "Cylinder"
669
local weld11 = Instance.new("Weld", collider11)
670
weld11.Part0 = rightrm
671
weld11.Part1 = collider11
672
weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
673
collider11.TopSurface = "Smooth"
674
collider11.BottomSurface = "Smooth"
675
collider11.formFactor = "Symmetric"
676
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
677
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
678
collider11.Transparency = 1
679
end
680
------------
681
if leftarm ~= nil then
682
local glue111 = Instance.new("Glue", clone.Torso)
683
glue111.Part0 = clone.Torso
684
glue111.Part1 = leftarm
685
glue111.Name = "Left shoulder"
686
local collider111 = Instance.new("Part", leftarm)
687
collider111.Position = Vector3.new(0,9999,0)
688
collider111.Size = Vector3.new(1.5,1,1)
689
collider111.Shape = "Cylinder"
690
local weld111 = Instance.new("Weld", collider111)
691
weld111.Part0 = leftarm
692
weld111.Part1 = collider111
693
weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
694
collider111.TopSurface = "Smooth"
695
collider111.BottomSurface = "Smooth"
696
collider111.formFactor = "Symmetric"
697
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
698
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
699
collider111.Transparency = 1
700
----------------
701
sensoring = Instance.new("Part", clone.Torso)
702
sensoring.Size = Vector3.new(1.2,1.1,0.8)
703
sensoring.CanCollide = false
704
sensoring.Position = clone.Torso.Position
705
local welder = Instance.new("Weld", sensoring)
706
welder.Part0 = clone.Torso
707
welder.Part1 = sensoring
708
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
709
sensoring.Transparency = 1
710
-----------------
711
sensoring1 = Instance.new("Part", clone.Torso)
712
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
713
sensoring1.CanCollide = false
714
sensoring1.Position = clone.Torso.Position
715
local welder1 = Instance.new("Weld", sensoring)
716
welder1.Part0 = clone.Torso
717
welder1.Part1 = sensoring1
718
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
719
sensoring1.Transparency = 1
720
end
721
clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
722
ded:Play()
723
vel:destroy()
724
wait(0.2)
725
game.Debris:AddItem(clone,60)
726
local function touch()
727
	if not using then
728
		using = true
729
		local Math = math.random(1,4)
730
		if Math == 1 then
731
			hit:Play()
732
		end
733
		if Math == 2 then
734
			hit1:Play()
735
		end
736
		if Math == 3 then
737
			hit2:Play()
738
		end
739
		if Math == 4 then
740
			hit3:Play()
741
		end
742
		wait(0.1)
743
		using = false
744
	end
745
end
746
sensoring.Touched:connect(touch)
747
sensoring1.Touched:connect(touch)
748
while true do
749
	clone.Head.CanCollide = false
750
	game:GetService("RunService").Stepped:wait()
751
end
752
end
753
754
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
755
756
--di ent
757
while true do
758
	if cananimate then
759
		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
760
			for i = 0.1,0.3 , 0.008 do
761
				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
762
					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)
763
					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)
764
					game:GetService("RunService").Stepped:wait()
765
				end
766
			end
767
			for i = 0.1,0.3 , 0.008 do
768
				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
769
					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)
770
					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)
771
					game:GetService("RunService").Stepped:wait()
772
				end
773
			end
774
		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
775
			for i = 0,1 , 0.1 do
776
				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
777
					weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
778
					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)
779
					humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
780
					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)
781
					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)
782
		            game:GetService("RunService").RenderStepped:wait()
783
				end
784
	        end
785
		end
786
	end
787
	wait()
788
end