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