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