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