SHOW:
|
|
- or go back to the newest paste.
| 1 | - | |
| 1 | + | print'why steal credit when you know it\'s mine?' |
| 2 | - | --[[dont u even dare take credit |
| 2 | + | --print'madiik cannot be resisted kthx' |
| 3 | - | cus dis mai law ok and if u break my law i keel u in sb |
| 3 | + | |
| 4 | - | |
| 4 | + | function clerp(c1,c2,al) |
| 5 | - | btw there's no point in re-naming "LocalPlayer" to "YOURNAMEHERE" or whatever, localplayer is the CLIENT itself. |
| 5 | + | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
|
| 6 | - | + i did a small update so you still have your clothes on when small ok? |
| 6 | + | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
|
| 7 | - | + ok wtf you need to stop using this i have regrets upon using it because it was made in 2014 ok |
| 7 | + | for i,v in pairs(com1) do |
| 8 | - | my anims have improved so much that you haven't seen my latest works |
| 8 | + | com1[i] = v+(com2[i]-v)*al |
| 9 | - | ~AmbientOcclusion (formerly madiik) |
| 9 | + | end |
| 10 | - | ]]-- |
| 10 | + | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) |
| 11 | - | |
| 11 | + | end |
| 12 | - | local ran,err = ypcall(function() |
| 12 | + | |
| 13 | - | plr = game:service'Players'.LocalPlayer |
| 13 | + | |
| 14 | - | char = plr.Character |
| 14 | + | plr = game:service'Players'.LocalPlayer |
| 15 | - | mouse = plr:GetMouse() |
| 15 | + | plrgui = plr.PlayerGui |
| 16 | - | humanoid = char:findFirstChild("Humanoid")
|
| 16 | + | char = plr.Character |
| 17 | - | torso = char:findFirstChild("Torso")
|
| 17 | + | mouse = plr:GetMouse() |
| 18 | - | head = char.Head |
| 18 | + | humanoid = char:findFirstChild("Humanoid")
|
| 19 | - | ra = char:findFirstChild("Right Arm")
|
| 19 | + | torso = char:findFirstChild("Torso")
|
| 20 | - | la = char:findFirstChild("Left Arm")
|
| 20 | + | head = char.Head |
| 21 | - | rl = char:findFirstChild("Right Leg")
|
| 21 | + | ra = char:findFirstChild("Right Arm")
|
| 22 | - | ll = char:findFirstChild("Left Leg")
|
| 22 | + | la = char:findFirstChild("Left Arm")
|
| 23 | - | rs = torso:findFirstChild("Right Shoulder")
|
| 23 | + | rl = char:findFirstChild("Right Leg")
|
| 24 | - | ls = torso:findFirstChild("Left Shoulder")
|
| 24 | + | ll = char:findFirstChild("Left Leg")
|
| 25 | - | rh = torso:findFirstChild("Right Hip")
|
| 25 | + | rs = torso:findFirstChild("Right Shoulder")
|
| 26 | - | lh = torso:findFirstChild("Left Hip")
|
| 26 | + | ls = torso:findFirstChild("Left Shoulder")
|
| 27 | - | neck = torso:findFirstChild("Neck")
|
| 27 | + | rh = torso:findFirstChild("Right Hip")
|
| 28 | - | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
|
| 28 | + | lh = torso:findFirstChild("Left Hip")
|
| 29 | - | anim = char:findFirstChild("Animate")
|
| 29 | + | neck = torso:findFirstChild("Neck")
|
| 30 | - | rootpart = char:findFirstChild("HumanoidRootPart")
|
| 30 | + | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
|
| 31 | - | camera = workspace.CurrentCamera |
| 31 | + | rootpart = char:findFirstChild("HumanoidRootPart")
|
| 32 | - | do --Removing ROBLOX's new Looped bug >_> |
| 32 | + | camera = workspace.CurrentCamera |
| 33 | - | local function rec(x) |
| 33 | + | anim = char:findFirstChild("Animate")
|
| 34 | - | for i,v in pairs(x:children()) do |
| 34 | + | if anim then |
| 35 | - | if v:IsA'Animation' then |
| 35 | + | anim:Destroy() |
| 36 | - | v.AnimationId = 'rbxassetid://28159255' |
| 36 | + | end |
| 37 | ||
| 38 | - | rec(v) |
| 38 | + | wait(1) |
| 39 | ||
| 40 | local rm = Instance.new("Motor", torso)
| |
| 41 | - | rec(anim) --the Animate script |
| 41 | + | rm.C0 = CFrame.new(1.5, 0.5, 0) |
| 42 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 43 | rm.Part0 = torso | |
| 44 | - | humanoid.Jump = true |
| 44 | + | rm.Part1 = ra |
| 45 | rm.Name = 'Right Shoulder' | |
| 46 | - | wait(.4) |
| 46 | + | |
| 47 | local lm = Instance.new("Motor", torso)
| |
| 48 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 49 | - | if anim then |
| 49 | + | lm.C1 = CFrame.new(0, 0.5, 0) |
| 50 | - | anim:Destroy() |
| 50 | + | lm.Part0 = torso |
| 51 | lm.Part1 = la | |
| 52 | - | |
| 52 | + | lm.Name = 'Left Shoulder' |
| 53 | - | |
| 53 | + | |
| 54 | - | rj.C0 = CFrame.new() |
| 54 | + | local rlegm = Instance.new("Motor", torso)
|
| 55 | - | rj.C1 = CFrame.new() |
| 55 | + | rlegm.C0 = CFrame.new(0.5, -1, 0) |
| 56 | - | |
| 56 | + | rlegm.C1 = CFrame.new(0, 1, 0) |
| 57 | - | |
| 57 | + | rlegm.Part0 = torso |
| 58 | - | super_annoying = Instance.new("Sound", head)
|
| 58 | + | rlegm.Part1 = rl |
| 59 | - | super_annoying.SoundId = "http://www.roblox.com/asset/?id=130816003" |
| 59 | + | local llegm = Instance.new("Motor", torso)
|
| 60 | - | super_annoying.Volume = 0.6 |
| 60 | + | llegm.C0 = CFrame.new(-0.5, -1, 0) |
| 61 | - | super_annoying.Looped = true |
| 61 | + | llegm.C1 = CFrame.new(0, 1, 0) |
| 62 | - | barrel_roll = Instance.new("Sound", head)
|
| 62 | + | llegm.Part0 = torso |
| 63 | - | barrel_roll.SoundId = "http://www.roblox.com/asset/?id=130791919" |
| 63 | + | llegm.Part1 = ll |
| 64 | - | barrel_roll.Volume = 1 |
| 64 | + | |
| 65 | - | barrel_roll.Looped = true |
| 65 | + | rj.C0 = CFrame.new() |
| 66 | - | dubstep_gun = Instance.new("Sound", head)
|
| 66 | + | rj.C1 = CFrame.new() |
| 67 | - | dubstep_gun.SoundId = "http://www.roblox.com/asset/?id=130855491" |
| 67 | + | |
| 68 | - | dubstep_gun.Volume = 0.6 |
| 68 | + | neck.C0 = CFrame.new(0, 1, 0) |
| 69 | - | dubstep_gun.Looped = true |
| 69 | + | neck.C1 = CFrame.new(0, -0.5, 0) |
| 70 | - | you_are_pirate = Instance.new("Sound", head)
|
| 70 | + | |
| 71 | - | you_are_pirate.SoundId = "http://www.roblox.com/asset/?id=130888577" |
| 71 | + | local speed = 0.3 |
| 72 | - | you_are_pirate.Volume = 0.6 |
| 72 | + | local angle = 0 |
| 73 | - | you_are_pirate.Looped = true |
| 73 | + | local anglespeed = 1 |
| 74 | - | cant_touch = Instance.new("Sound", head)
|
| 74 | + | rsc0 = rm.C0 |
| 75 | - | cant_touch.SoundId = "http://www.roblox.com/asset/?id=131280929" |
| 75 | + | lsc0 = lm.C0 |
| 76 | - | cant_touch.Volume = 1 |
| 76 | + | llc0 = llegm.C0 |
| 77 | - | cant_touch.Looped = true |
| 77 | + | rlc0 = rlegm.C0 |
| 78 | - | gangy_style = Instance.new("Sound", head)
|
| 78 | + | rootc0 = rj.C0 |
| 79 | - | gangy_style.SoundId = "http://www.roblox.com/asset/?id=130844430" |
| 79 | + | neckc0 = neck.C0 |
| 80 | - | gangy_style.Volume = 0.6 |
| 80 | + | |
| 81 | - | gangy_style.Looped = true |
| 81 | + | mouse.KeyDown:connect(function(k) |
| 82 | - | fox_say = Instance.new("Sound", head)
|
| 82 | + | if k == "e" then |
| 83 | - | fox_say.SoundId = "http://www.roblox.com/asset/?id=130797915" |
| 83 | + | fieryhead = not fieryhead |
| 84 | - | fox_say.Volume = 0.5 |
| 84 | + | if fieryhead then |
| 85 | - | fox_say.Looped = true |
| 85 | + | |
| 86 | - | durk = Instance.new("Sound", head)
|
| 86 | + | while fieryhead and wait() do |
| 87 | - | durk.SoundId = "http://www.roblox.com/asset/?id=130776787" |
| 87 | + | local FireColors = {'Really red', 'Bright orange'}
|
| 88 | - | durk.Volume = 0.8 |
| 88 | + | local p = Instance.new('Part', char)
|
| 89 | - | durk.Looped = true |
| 89 | + | p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)]) |
| 90 | - | sax_guy = Instance.new("Sound", head)
|
| 90 | + | p.FormFactor = 'Custom' |
| 91 | - | sax_guy.SoundId = "http://www.roblox.com/asset/?id=130794684" |
| 91 | + | p.Size = Vector3.new(3, 3, 3) |
| 92 | - | sax_guy.Volume = 0.6 |
| 92 | + | p.CanCollide = false |
| 93 | - | sax_guy.Looped = true |
| 93 | + | p.Anchored = true |
| 94 | - | heman = Instance.new("Sound", head)
|
| 94 | + | p.Locked = true |
| 95 | - | heman.SoundId = "http://www.roblox.com/asset/?id=131102548" |
| 95 | + | Instance.new('PointLight', p).Range = 10
|
| 96 | - | heman.Volume = 1 |
| 96 | + | p.CFrame = head.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3)) |
| 97 | - | heman.Looped = true |
| 97 | + | Instance.new('BlockMesh', p)
|
| 98 | - | justin = Instance.new("Sound", head)
|
| 98 | + | |
| 99 | - | justin.SoundId = "http://www.roblox.com/asset/?id=130841252" |
| 99 | + | for i = 1, 10 do |
| 100 | - | justin.Volume = 0.8 |
| 100 | + | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1) |
| 101 | - | justin.Looped = true |
| 101 | + | p.CFrame = p.CFrame * CFrame.new(0, .35, 0) |
| 102 | - | brony_music = Instance.new("Sound", head)
|
| 102 | + | wait() |
| 103 | - | brony_music.SoundId = "http://www.roblox.com/asset/?id=145105874" |
| 103 | + | |
| 104 | - | brony_music.Volume = 1 |
| 104 | + | |
| 105 | - | brony_music.Looped = true |
| 105 | + | game:service'Debris':AddItem(p, .55) |
| 106 | - | spitfire = Instance.new("Sound", head)
|
| 106 | + | |
| 107 | - | spitfire.SoundId = "http://www.roblox.com/asset/?id=129490596" |
| 107 | + | end)() |
| 108 | - | spitfire.Volume = 0.8 |
| 108 | + | |
| 109 | - | spitfire.Looped = true |
| 109 | + | end |
| 110 | - | burn_dem = Instance.new("Sound", head)
|
| 110 | + | if k == "r" then |
| 111 | - | burn_dem.SoundId = "http://www.roblox.com/asset/?id=132399469" |
| 111 | + | if Charge1Anim or Attack1Anim then return end |
| 112 | - | burn_dem.Volume = 1 |
| 112 | + | Charge1Anim = true |
| 113 | - | burn_dem.Looped = true |
| 113 | + | for i = 0, 70 do |
| 114 | - | aj = Instance.new("Sound", head)
|
| 114 | + | local FireColors = {'Really red', 'Bright orange'}
|
| 115 | - | aj.SoundId = "rbxassetid://177732780" |
| 115 | + | local p = Instance.new('Part', char)
|
| 116 | - | aj.Volume = 1 |
| 116 | + | p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)]) |
| 117 | - | aj.Looped = true |
| 117 | + | p.FormFactor = 'Custom' |
| 118 | - | |
| 118 | + | p.Size = Vector3.new(.8, .8, .8) |
| 119 | - | Instance.new("HumanoidController", game:service'ControllerService')
|
| 119 | + | p.CanCollide = false |
| 120 | - | Instance.new("SkateboardController", game:service'ControllerService')
|
| 120 | + | p.Anchored = true |
| 121 | - | Instance.new("VehicleController", game:service'ControllerService')
|
| 121 | + | p.Locked = true |
| 122 | - | |
| 122 | + | p.CFrame = ra.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3)) |
| 123 | - | |
| 123 | + | Instance.new('BlockMesh', p)
|
| 124 | - | |
| 124 | + | |
| 125 | - | |
| 125 | + | for i = 1, 10 do |
| 126 | - | --minimize |
| 126 | + | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1) |
| 127 | - | rh.Parent = nil |
| 127 | + | p.CFrame = p.CFrame * CFrame.new(0, .15, 0) |
| 128 | - | lh.Parent = nil |
| 128 | + | wait() |
| 129 | - | rs.Parent = nil |
| 129 | + | |
| 130 | - | ls.Parent = nil |
| 130 | + | end)() |
| 131 | - | neck.Parent = nil |
| 131 | + | game:service'Debris':AddItem(p, 2) |
| 132 | - | rj.Parent = nil |
| 132 | + | wait() |
| 133 | - | |
| 133 | + | |
| 134 | - | |
| 134 | + | Charge1Anim = false |
| 135 | - | rl.FormFactor = "Custom" |
| 135 | + | Attack1Anim = true |
| 136 | - | ll.FormFactor = "Custom" |
| 136 | + | wait(.35) |
| 137 | - | ra.FormFactor = "Custom" |
| 137 | + | local ray = Ray.new(ra.CFrame*CFrame.new(0,-1,0).p, ra.CFrame*CFrame.new(0, -150, 0).p) |
| 138 | - | la.FormFactor = "Custom" |
| 138 | + | local hitz, enz = workspace:FindPartOnRay(ray, char) |
| 139 | - | torso.FormFactor = "Custom" |
| 139 | + | local humanoid = hitz and hitz.Parent and hitz.Parent:findFirstChild("Humanoid")
|
| 140 | - | head.FormFactor = "Custom" |
| 140 | + | if humanoid then |
| 141 | - | rootpart.FormFactor = "Custom" |
| 141 | + | humanoid:TakeDamage(80) |
| 142 | - | |
| 142 | + | |
| 143 | - | |
| 143 | + | local humanoid = hitz and hitz.Parent and hitz.Parent.Parent and hitz.Parent.Parent:findFirstChild("Humanoid")
|
| 144 | - | |
| 144 | + | if humanoid then |
| 145 | - | |
| 145 | + | humanoid:TakeDamage(80) |
| 146 | - | rootpart.Size = Vector3.new(.4, .4, .2) |
| 146 | + | |
| 147 | - | rl.Size = Vector3.new(.2, .4, .2) |
| 147 | + | |
| 148 | - | ll.Size = Vector3.new(.2, .4, .2) |
| 148 | + | --draw the ray |
| 149 | - | ra.Size = Vector3.new(.2, .4, .2) |
| 149 | + | local distance = (enz - ra.CFrame*CFrame.new(0,-1,0).p).magnitude |
| 150 | - | la.Size = Vector3.new(.2, .4, .2) |
| 150 | + | local rayPart = Instance.new("Part", char)
|
| 151 | - | torso.Size = Vector3.new(.4, .4, .2) |
| 151 | + | rayPart.BrickColor = BrickColor.new("Bright red")
|
| 152 | - | head.Size = Vector3.new(.4, .2, .2) |
| 152 | + | rayPart.Anchored = true |
| 153 | - | |
| 153 | + | rayPart.CanCollide = false |
| 154 | - | rh.Parent = torso |
| 154 | + | rayPart.Locked = true |
| 155 | - | lh.Parent = torso |
| 155 | + | rayPart.TopSurface = 0 |
| 156 | - | rs.Parent = torso |
| 156 | + | rayPart.BottomSurface = 0 |
| 157 | - | ls.Parent = torso |
| 157 | + | rayPart.formFactor = 'Custom' |
| 158 | - | neck.Parent = torso |
| 158 | + | Instance.new('CylinderMesh', rayPart)
|
| 159 | - | rj.Parent = rootpart |
| 159 | + | rayPart.Size = Vector3.new(1, distance, 1) |
| 160 | - | |
| 160 | + | rayPart.CFrame = CFrame.new((enz + ra.CFrame*CFrame.new(0,-1,0).p)/2,enz) * CFrame.Angles(math.pi/2, 0, 0) |
| 161 | - | |
| 161 | + | for i = 0, 1, .1 do |
| 162 | - | if torso:findFirstChild("roblox") then
|
| 162 | + | rayPart.Transparency = i |
| 163 | - | local p = Instance.new("Part", char)
|
| 163 | + | wait() |
| 164 | - | p.FormFactor = "Custom" |
| 164 | + | |
| 165 | - | p.Size = torso.Size |
| 165 | + | rayPart:remove() |
| 166 | - | p.Transparency = 1 |
| 166 | + | Attack1Anim = false |
| 167 | - | p:BreakJoints() |
| 167 | + | end |
| 168 | - | local w = Instance.new("Weld", char)
|
| 168 | + | if string.byte(k) == 48 then |
| 169 | - | w.Part0 = p |
| 169 | + | humanoid.WalkSpeed = 24 |
| 170 | - | w.Part1 = torso |
| 170 | + | end |
| 171 | - | torso:findFirstChild("roblox").Parent = p
|
| 171 | + | end) |
| 172 | ||
| 173 | - | |
| 173 | + | mouse.KeyUp:connect(function(k) |
| 174 | - | |
| 174 | + | if string.byte(k) == 48 then |
| 175 | - | --[[mesh1 = Instance.new("SpecialMesh", torso)
|
| 175 | + | humanoid.WalkSpeed = 16 |
| 176 | - | mesh1.Name = "Mesh" |
| 176 | + | end |
| 177 | - | mesh1.Scale = torso.Size - Vector3.new(torso.Size.x/2, torso.Size.y/2, 0) |
| 177 | + | end) |
| 178 | - | mesh1.MeshId = "rbxasset://fonts/torso.mesh" |
| 178 | + | |
| 179 | - | mesh2 = Instance.new("SpecialMesh", la)
|
| 179 | + | local action = 'None' |
| 180 | - | mesh2.Name = "Mesh" |
| 180 | + | plr.Chatted:connect(function(msg) |
| 181 | - | mesh2.Scale = la.Size - Vector3.new(0, la.Size.y/2, 0) |
| 181 | + | if msg == '/e dance' or msg == '/emote dance' then |
| 182 | - | mesh2.MeshId = "rbxasset://fonts/leftarm.mesh" |
| 182 | + | action = 'Dance' |
| 183 | - | mesh3 = Instance.new("SpecialMesh", ra)
|
| 183 | + | end |
| 184 | - | mesh3.Name = "Mesh" |
| 184 | + | if msg == '/e bernie' or msg == '/emote bernie' then |
| 185 | - | mesh3.Scale = ra.Size - Vector3.new(0, ra.Size.y/2, 0) |
| 185 | + | action = 'MovingLikeBernie' |
| 186 | - | mesh3.MeshId = "rbxasset://fonts/rightarm.mesh" |
| 186 | + | end |
| 187 | - | mesh4 = Instance.new("SpecialMesh", ll)
|
| 187 | + | end) |
| 188 | - | mesh4.Name = "Mesh" |
| 188 | + | |
| 189 | - | mesh4.Scale = ll.Size - Vector3.new(0, ll.Size.y/2, 0) |
| 189 | + | local dance_move_wait = 0 |
| 190 | - | mesh4.MeshId = "rbxasset://fonts/leftleg.mesh" |
| 190 | + | print'madiik cannot be resisted kthx' |
| 191 | - | mesh5 = Instance.new("SpecialMesh", rl)
|
| 191 | + | game:service'RunService'.RenderStepped:connect(function() |
| 192 | - | mesh5.Name = "Mesh" |
| 192 | + | rm.MaxVelocity = 0 |
| 193 | - | mesh5.Scale = rl.Size - Vector3.new(0, rl.Size.y/2, 0) |
| 193 | + | lm.MaxVelocity = 0 |
| 194 | - | mesh5.MeshId = "rbxasset://fonts/rightleg.mesh"--]] |
| 194 | + | rm.DesiredAngle = 0 |
| 195 | - | |
| 195 | + | rm.CurrentAngle = 0 |
| 196 | - | |
| 196 | + | lm.DesiredAngle = 0 |
| 197 | - | --0.3 = 1.5, 0.1 = 0.5, 0.2 = 1 |
| 197 | + | lm.CurrentAngle = 0 |
| 198 | - | |
| 198 | + | angle = (angle % 100) + anglespeed/10 |
| 199 | - | ls.C0 = CFrame.new(-.3,.1,0) |
| 199 | + | mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10)) |
| 200 | - | ls.C1 = CFrame.new(0,.1,0) |
| 200 | + | local rscf = rsc0 |
| 201 | - | rs.C0 = CFrame.new(.3,.1,0) |
| 201 | + | local lscf = lsc0 |
| 202 | - | rs.C1 = CFrame.new(0,.1,0) |
| 202 | + | local rlcf = rlc0 |
| 203 | - | rh.C0 = CFrame.new(.1,-.2,0) |
| 203 | + | local llcf = llc0 |
| 204 | - | rh.C1 = CFrame.new(0, .2, 0) |
| 204 | + | local rjcf = rootc0 |
| 205 | - | lh.C0 = CFrame.new(-.1,-.2,0) |
| 205 | + | local ncf = neckc0 |
| 206 | - | lh.C1 = CFrame.new(0, .2, 0) |
| 206 | + | local ray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0)) |
| 207 | - | neck.C0 = CFrame.new(0,.2,0) |
| 207 | + | local hitz, enz = workspace:FindPartOnRay(ray, char) |
| 208 | - | neck.C1 = CFrame.new(0,-.1,0) |
| 208 | + | for i,object in pairs(char:children()) do |
| 209 | - | |
| 209 | + | if object:IsA("Tool") then
|
| 210 | - | bodyc = char:findFirstChild("Body Colors")
|
| 210 | + | tool = true |
| 211 | - | if bodyc then |
| 211 | + | if not debounce then |
| 212 | - | bodyc:Destroy() |
| 212 | + | for x,value in pairs(object:children()) do |
| 213 | if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
| |
| 214 | - | |
| 214 | + | debounce = true |
| 215 | - | wait(1) |
| 215 | + | coroutine.wrap(function() |
| 216 | - | |
| 216 | + | slashing = true |
| 217 | - | local body = {}
|
| 217 | + | wait(.15) |
| 218 | - | for i,v in pairs(char:children()) do |
| 218 | + | slashing = false |
| 219 | - | if v:IsA'BasePart' then |
| 219 | + | debounce = false |
| 220 | - | print(v.Name) |
| 220 | + | |
| 221 | - | body[v.Name] = {Color = v.BrickColor}
|
| 221 | + | value:Destroy() |
| 222 | end | |
| 223 | end | |
| 224 | - | |
| 224 | + | |
| 225 | - | print(body.Torso) |
| 225 | + | elseif not object:IsA'Tool' then |
| 226 | - | function restorecolors() |
| 226 | + | tool = false |
| 227 | - | for _,bp in pairs(char:children()) do |
| 227 | + | |
| 228 | - | if bp:IsA("BasePart") then
|
| 228 | + | |
| 229 | - | bp.BrickColor = body[bp.Name].Color |
| 229 | + | if action == 'Dance' then |
| 230 | anglespeed = 2 | |
| 231 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
| 232 | rjcf = rootc0 * CFrame.Angles(math.rad(2), math.sin(angle)*.15, 0) | |
| 233 | - | |
| 233 | + | lscf = lsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2-math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4) |
| 234 | - | |
| 234 | + | rscf = rsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2+math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4) |
| 235 | - | local LightForTorso = Instance.new("PointLight", head)
|
| 235 | + | rlcf = rlc0 * CFrame.new(0, .3 + math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0) |
| 236 | - | LightForTorso.Color = torso.BrickColor.Color |
| 236 | + | llcf = llc0 * CFrame.new(0, .3 - math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0) |
| 237 | - | LightForTorso.Range = 7 |
| 237 | + | ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0) |
| 238 | - | LightForTorso.Brightness = 1.5 |
| 238 | + | |
| 239 | - | |
| 239 | + | action = 'None' |
| 240 | - | |
| 240 | + | |
| 241 | - | |
| 241 | + | elseif action == 'MovingLikeBernie' then |
| 242 | - | |
| 242 | + | anglespeed = 1+math.random() |
| 243 | - | local slidecount = 0 |
| 243 | + | dance_move_wait = (dance_move_wait%40) + 1/60 |
| 244 | - | local slidecountmax = 0 |
| 244 | + | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then |
| 245 | - | local anim = "" |
| 245 | + | if dance_move_wait <= 20 then |
| 246 | - | local lastanim = anim |
| 246 | + | rjcf = rootc0 * CFrame.new(0, -.2, .6) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0) |
| 247 | - | local speed = 0 |
| 247 | + | lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + -math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4) |
| 248 | - | local looking = false |
| 248 | + | rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4) |
| 249 | - | local dancing = false |
| 249 | + | rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, .1) |
| 250 | - | local superannoying = false |
| 250 | + | llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, -.1) |
| 251 | - | local barrelroll = false |
| 251 | + | ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0) |
| 252 | - | local dubstepgun = false |
| 252 | + | elseif dance_move_wait > 20 then |
| 253 | - | local foxie = false |
| 253 | + | rjcf = rootc0 * CFrame.new(0, -.2, -.6) * CFrame.Angles(-math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0) |
| 254 | - | local durka = false |
| 254 | + | lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4) |
| 255 | - | local saxguy = false |
| 255 | + | rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + -math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4) |
| 256 | - | local heya = false |
| 256 | + | rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, .1) |
| 257 | - | local jb = false |
| 257 | + | llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, -.1) |
| 258 | - | local bronymusic = false |
| 258 | + | ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0) |
| 259 | - | local sheddy = false |
| 259 | + | |
| 260 | - | local burndem = false |
| 260 | + | |
| 261 | - | local global_wait = 0 |
| 261 | + | action = 'None' |
| 262 | - | |
| 262 | + | |
| 263 | - | count = 0 |
| 263 | + | elseif not hitz and (torso.Velocity.y > 1 or torso.Velocity.y < -1) then |
| 264 | - | countspeed = 1 |
| 264 | + | anglespeed = 3 |
| 265 | - | sine = 0 |
| 265 | + | rjcf = rootc0 * CFrame.Angles(math.rad(5), 0, 0) |
| 266 | - | sinespeed = 1 |
| 266 | + | rscf = rsc0 * CFrame.Angles(math.rad(130) + math.sin(angle)*.8, 0, .15) |
| 267 | - | |
| 267 | + | lscf = lsc0 * CFrame.Angles(math.rad(130) + -math.sin(angle)*.8, 0, -.15) |
| 268 | - | |
| 268 | + | rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(angle)*.3, -.3 + -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + -math.sin(angle)*1, 0, 0) |
| 269 | - | |
| 269 | + | llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.3 - -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + math.sin(angle)*1, 0, 0) |
| 270 | - | humanoid.WalkSpeed = 11 |
| 270 | + | ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.8, 0) |
| 271 | - | |
| 271 | + | |
| 272 | - | |
| 272 | + | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then |
| 273 | - | local controllerService = game:GetService("ControllerService")
|
| 273 | + | anglespeed = 2 |
| 274 | - | local controller = controllerService:GetChildren()[1] |
| 274 | + | rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0) |
| 275 | - | |
| 275 | + | rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.7, 0, .05) |
| 276 | - | |
| 276 | + | lscf = lsc0 * CFrame.Angles(-math.sin(angle)*1.7, 0, -.05) |
| 277 | - | local colors = {"White", "Really black"}
|
| 277 | + | rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*1.4, 0, 0) |
| 278 | - | |
| 278 | + | llcf = llc0 * CFrame.Angles(math.sin(angle)*1.4, 0, 0) |
| 279 | - | humanoid.Died:connect(function() |
| 279 | + | ncf = neckc0 * CFrame.Angles(-math.rad(30) + math.abs(math.sin(angle))*.95, math.sin(angle)*.8, 0) |
| 280 | - | for cframe_parts = 0, 100 do |
| 280 | + | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 20 then |
| 281 | - | local p = Instance.new("Part")
|
| 281 | + | anglespeed = 2.5 |
| 282 | - | p.FormFactor = "Custom" |
| 282 | + | rjcf = rootc0 * CFrame.new(0, -.3 + math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(-math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0) |
| 283 | - | p.BrickColor = BrickColor.new(colors[math.random(1, #colors)]) |
| 283 | + | rscf = rsc0 * CFrame.new(0, math.cos(angle)*.5, math.sin(angle)*.5) * CFrame.Angles(math.cos(angle)*2.8, 0, math.abs(math.sin(angle))*.5) |
| 284 | - | p.Size = Vector3.new(1, 1, 1) |
| 284 | + | lscf = lsc0 * CFrame.new(0, -math.cos(angle)*.5, -math.sin(angle)*.5) * CFrame.Angles(-math.cos(angle)*2.8, 0, -math.abs(math.sin(angle))*.5) |
| 285 | - | Instance.new("BlockMesh", p).Scale = Vector3.new(0.05, 0.05, 0.05)
|
| 285 | + | rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.4, 0, math.rad(.5)) |
| 286 | - | p.Locked = true |
| 286 | + | llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.4, 0, -math.rad(.5)) |
| 287 | - | p.CanCollide = false |
| 287 | + | ncf = neckc0 * CFrame.Angles(math.cos(angle), math.sin(angle), 0) |
| 288 | - | p.Anchored = true |
| 288 | + | |
| 289 | - | p.CFrame = torso.CFrame * CFrame.Angles(math.random(-36, 36),math.random(-36, 36),math.random(-36, 36)) |
| 289 | + | if Charge1Anim then |
| 290 | - | p.Parent = workspace |
| 290 | + | rscf = rsc0 * CFrame.new(-.75, 0, .75) * CFrame.Angles(math.pi/4, 0, math.pi/4) |
| 291 | - | game:service'Debris':AddItem(p, 5) |
| 291 | + | lscf = lsc0 * CFrame.new(.95, 0, -.45) * CFrame.Angles(math.pi/4, 0, math.pi/3) |
| 292 | end | |
| 293 | - | while wait() do |
| 293 | + | if Attack1Anim then |
| 294 | - | if p ~= nil then |
| 294 | + | rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0) |
| 295 | - | p.CFrame = p.CFrame * CFrame.new(0, 0.085, 0) |
| 295 | + | lscf = lsc0 * CFrame.Angles(-math.pi/8, 0, 0) |
| 296 | - | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.005, 0, 0.005) + Vector3.new(0, 0.01, 0) |
| 296 | + | |
| 297 | - | p.Transparency = p.Transparency + 0.015 |
| 297 | + | if tool then |
| 298 | - | else |
| 298 | + | rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0) |
| 299 | - | break |
| 299 | + | if slashing then |
| 300 | rscf = rsc0 * CFrame.Angles(-math.pi/12, 0, -.1) | |
| 301 | end | |
| 302 | - | end)() |
| 302 | + | |
| 303 | rm.C0 = clerp(rm.C0,rscf,speed) | |
| 304 | - | for _,v in pairs(char:children()) do |
| 304 | + | lm.C0 = clerp(lm.C0,lscf,speed) |
| 305 | - | if v:IsA("Part") then
|
| 305 | + | rj.C0 = clerp(rj.C0,rjcf,speed) |
| 306 | - | v:Destroy() |
| 306 | + | neck.C0 = clerp(neck.C0,ncf,speed) |
| 307 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
| 308 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
| 309 | - | |
| 309 | + | end) |