Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by Adelpvp123#8551
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("Weld")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("Part")
- o8 = Instance.new("Decal")
- o9 = Instance.new("Motor")
- o10 = Instance.new("Motor")
- o11 = Instance.new("Motor")
- o12 = Instance.new("Motor")
- o13 = Instance.new("Motor")
- o14 = Instance.new("Sparkles")
- o15 = Instance.new("PointLight")
- o16 = Instance.new("Part")
- o17 = Instance.new("SpecialMesh")
- o18 = Instance.new("Decal")
- o19 = Instance.new("BodyColors")
- o20 = Instance.new("Humanoid")
- o21 = Instance.new("Script")
- o22 = Instance.new("Script")
- o23 = Instance.new("Script")
- o24 = Instance.new("Tool")
- o25 = Instance.new("Part")
- o26 = Instance.new("SpecialMesh")
- o27 = Instance.new("Sound")
- o28 = Instance.new("Script")
- o30 = Instance.new("Script")
- o31 = Instance.new("StringValue")
- o32 = Instance.new("StringValue")
- o33 = Instance.new("StringValue")
- o34 = Instance.new("StringValue")
- o35 = Instance.new("StringValue")
- o36 = Instance.new("StringValue")
- o37 = Instance.new("StringValue")
- o38 = Instance.new("StringValue")
- o39 = Instance.new("StringValue")
- o40 = Instance.new("StringValue")
- o41 = Instance.new("StringValue")
- o42 = Instance.new("StringValue")
- o43 = Instance.new("StringValue")
- o44 = Instance.new("StringValue")
- o45 = Instance.new("StringValue")
- o46 = Instance.new("StringValue")
- o47 = Instance.new("StringValue")
- o48 = Instance.new("StringValue")
- o49 = Instance.new("StringValue")
- o50 = Instance.new("StringValue")
- o51 = Instance.new("StringValue")
- o52 = Instance.new("StringValue")
- o53 = Instance.new("StringValue")
- o54 = Instance.new("StringValue")
- o55 = Instance.new("StringValue")
- o56 = Instance.new("StringValue")
- o57 = Instance.new("StringValue")
- o58 = Instance.new("StringValue")
- o59 = Instance.new("StringValue")
- o60 = Instance.new("StringValue")
- o61 = Instance.new("StringValue")
- o62 = Instance.new("StringValue")
- o63 = Instance.new("StringValue")
- o64 = Instance.new("StringValue")
- o65 = Instance.new("StringValue")
- o66 = Instance.new("StringValue")
- o67 = Instance.new("StringValue")
- o68 = Instance.new("StringValue")
- o69 = Instance.new("StringValue")
- o70 = Instance.new("StringValue")
- o71 = Instance.new("StringValue")
- o72 = Instance.new("StringValue")
- o73 = Instance.new("StringValue")
- o74 = Instance.new("StringValue")
- o75 = Instance.new("StringValue")
- o76 = Instance.new("StringValue")
- o77 = Instance.new("StringValue")
- o78 = Instance.new("StringValue")
- o79 = Instance.new("StringValue")
- o80 = Instance.new("StringValue")
- o81 = Instance.new("StringValue")
- o82 = Instance.new("StringValue")
- o83 = Instance.new("StringValue")
- o84 = Instance.new("StringValue")
- o85 = Instance.new("StringValue")
- o86 = Instance.new("StringValue")
- o87 = Instance.new("StringValue")
- o88 = Instance.new("BoolValue")
- o89 = Instance.new("ObjectValue")
- o1.Name = "(BOSS) RAIGING NOOB!!"
- o1.Parent = mas
- o1.PrimaryPart = o16
- o2.Name = "Right Leg"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Bright red")
- o2.Position = Vector3.new(-7.96908188, 1.00003004, 87.977356)
- o2.Rotation = Vector3.new(-180, -16.25, -180)
- o2.CanCollide = false
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Size = Vector3.new(1, 2, 1)
- o2.CFrame = CFrame.new(-7.96908188, 1.00003004, 87.977356, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o2.Position = Vector3.new(-7.96908188, 1.00003004, 87.977356)
- o3.Name = "Right Arm"
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Bright red")
- o3.Position = Vector3.new(-8.9291172, 3.00003004, 88.2572327)
- o3.Rotation = Vector3.new(-180, -16.25, -180)
- o3.CanCollide = false
- o3.FormFactor = Enum.FormFactor.Symmetric
- o3.Size = Vector3.new(1, 2, 1)
- o3.CFrame = CFrame.new(-8.9291172, 3.00003004, 88.2572327, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o3.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o3.Position = Vector3.new(-8.9291172, 3.00003004, 88.2572327)
- o4.Name = "RightGrip"
- o4.Parent = o3
- o4.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
- o4.C1 = CFrame.new(0, 0, 0.300000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.Part0 = o3
- o4.Part1 = o25
- o5.Name = "Left Leg"
- o5.Parent = o1
- o5.BrickColor = BrickColor.new("Really red")
- o5.Position = Vector3.new(-7.00904655, 1.00003004, 87.6974792)
- o5.Rotation = Vector3.new(-180, -16.25, -180)
- o5.CanCollide = false
- o5.FormFactor = Enum.FormFactor.Symmetric
- o5.Size = Vector3.new(1, 2, 1)
- o5.CFrame = CFrame.new(-7.00904655, 1.00003004, 87.6974792, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(1, 0, 0)
- o5.Position = Vector3.new(-7.00904655, 1.00003004, 87.6974792)
- o6.Name = "Left Arm"
- o6.Parent = o1
- o6.BrickColor = BrickColor.new("Bright red")
- o6.Position = Vector3.new(-6.04901123, 3.00003004, 87.4176025)
- o6.Rotation = Vector3.new(-180, -16.25, -180)
- o6.CanCollide = false
- o6.FormFactor = Enum.FormFactor.Symmetric
- o6.Size = Vector3.new(1, 2, 1)
- o6.CFrame = CFrame.new(-6.04901123, 3.00003004, 87.4176025, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o6.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o6.Position = Vector3.new(-6.04901123, 3.00003004, 87.4176025)
- o7.Name = "Torso"
- o7.Parent = o1
- o7.BrickColor = BrickColor.new("Really red")
- o7.Position = Vector3.new(-7.48906422, 3.00003004, 87.8374176)
- o7.Rotation = Vector3.new(-180, -16.25, -180)
- o7.FormFactor = Enum.FormFactor.Symmetric
- o7.Friction = 0
- o7.Size = Vector3.new(2, 2, 1)
- o7.CFrame = CFrame.new(-7.48906422, 3.00003004, 87.8374176, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o7.LeftSurface = Enum.SurfaceType.Weld
- o7.RightSurface = Enum.SurfaceType.Weld
- o7.Color = Color3.new(1, 0, 0)
- o7.Position = Vector3.new(-7.48906422, 3.00003004, 87.8374176)
- o8.Name = "roblox"
- o8.Parent = o7
- o9.Name = "Right Shoulder"
- o9.Parent = o7
- o9.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o9.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o9.Part0 = o7
- o9.Part1 = o3
- o9.DesiredAngle = 1.5700000524521
- o9.MaxVelocity = 0.15000000596046
- o10.Name = "Left Shoulder"
- o10.Parent = o7
- o10.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o10.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o10.Part0 = o7
- o10.Part1 = o6
- o10.DesiredAngle = -0.82280361652374
- o10.MaxVelocity = 0.15000000596046
- o11.Name = "Right Hip"
- o11.Parent = o7
- o11.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o11.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o11.Part0 = o7
- o11.Part1 = o2
- o11.DesiredAngle = 0.82280361652374
- o11.MaxVelocity = 0.10000000149012
- o12.Name = "Left Hip"
- o12.Parent = o7
- o12.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o12.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o12.Part0 = o7
- o12.Part1 = o5
- o12.DesiredAngle = 0.82280361652374
- o12.MaxVelocity = 0.10000000149012
- o13.Name = "Neck"
- o13.Parent = o7
- o13.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- o13.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- o13.Part0 = o7
- o13.Part1 = o16
- o13.MaxVelocity = 0.10000000149012
- o14.Parent = o7
- o14.Color = Color3.new(0.618056, 0.32, 0.0196078)
- o14.SparkleColor = Color3.new(0.34902, 0.0313726, 0.0196078)
- o15.Parent = o7
- o15.Color = Color3.new(0.835294, 0.0862745, 0.0196078)
- o15.Brightness = 20
- o15.Range = 10
- o16.Name = "Head"
- o16.Parent = o1
- o16.BrickColor = BrickColor.new("Really red")
- o16.Position = Vector3.new(-7.48906422, 4.50003004, 87.8374176)
- o16.Rotation = Vector3.new(-180, -16.25, -180)
- o16.FormFactor = Enum.FormFactor.Symmetric
- o16.Friction = 0
- o16.Size = Vector3.new(2, 1, 1)
- o16.CFrame = CFrame.new(-7.48906422, 4.50003004, 87.8374176, -0.960035264, 0, -0.279879063, 0, 1, 0, 0.279879063, 0, -0.960035264)
- o16.TopSurface = Enum.SurfaceType.Smooth
- o16.Color = Color3.new(1, 0, 0)
- o16.Position = Vector3.new(-7.48906422, 4.50003004, 87.8374176)
- o17.Parent = o16
- o17.Scale = Vector3.new(1.25, 1.25, 1.25)
- o18.Parent = o16
- o18.Texture = "http://www.roblox.com/asset/?id=109676489"
- o19.Parent = o1
- o19.HeadColor = BrickColor.new("Bright yellow")
- o19.LeftArmColor = BrickColor.new("Bright yellow")
- o19.LeftLegColor = BrickColor.new("Bright green")
- o19.RightArmColor = BrickColor.new("Bright yellow")
- o19.RightLegColor = BrickColor.new("Bright green")
- o19.TorsoColor = BrickColor.new("Deep blue")
- o20.Parent = o1
- o20.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- o20.RightLeg = o2
- o20.LeftLeg = o5
- o20.Torso = o7
- o20.Health = 500
- o20.MaxHealth = 500
- o21.Name = "Animate"
- o21.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Model = script.Parent
- local Backup = Model:clone()
- function Respawn()
- local f=Instance.new("ForceField")
- Model:breakJoints()
- wait(5)
- script.Parent = Model.Parent
- Model:remove()
- Model = Backup:clone()
- Model.Parent = script.Parent
- Model:makeJoints()
- f.Parent=Model
- wait(5)
- f.Parent=nil
- script:remove()
- end
- Model.Humanoid.Died:connect(Respawn)
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- while true do
- print(childName)
- child = parent.ChildAdded:wait()
- if child.Name==childName then
- return child
- end
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Figure.PrimaryPart = Head
- -- ANIMATION
- function Joint(Name, Part0, Part1, C0, C1, MaxVelocity)
- local Motor = Instance.new("Motor")
- Motor.C0 = C0
- Motor.C1 = C1
- Motor.MaxVelocity = MaxVelocity
- Motor.Name = Name
- Motor.Parent = Part0
- Motor.Part0 = Part0
- Motor.Part1 = Part1
- end
- -- declarations
- local Torso = waitForChild(Figure, "Torso")
- local LeftArm = waitForChild(Figure, "Left Arm")
- local LeftLeg = waitForChild(Figure, "Left Leg")
- local RightArm = waitForChild(Figure, "Right Arm")
- local RightLeg = waitForChild(Figure, "Right Leg")
- local Joints = {
- {"Right Shoulder", Torso, RightArm, CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), 0.5},
- {"Left Shoulder", Torso, LeftArm, CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), 0.5},
- {"Right Hip", Torso, RightLeg, CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), 0.10000000149012},
- {"Left Hip", Torso, LeftLeg, CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), 0.10000000149012},
- {"Neck", Torso, Head, CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.10000000149012}}
- Torso:breakJoints()
- for _, v in pairs(Joints) do
- Joint(unpack(v))
- end
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- -- functions
- function onRunning(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- -- same as jump for now
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = 3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- RightShoulder.DesiredAngle = 1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- local climbFudge = 0
- if (pose == "Running") then
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- amplitude = 1
- frequency = 9
- elseif (pose == "Climbing") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- amplitude = 1
- frequency = 9
- climbFudge = 3.14
- else
- amplitude = 0.1
- frequency = 1
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- RightShoulder.DesiredAngle = desiredAngle + climbFudge
- LeftShoulder.DesiredAngle = desiredAngle - climbFudge
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- -- functions
- function onSoundDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onSoundRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onSoundDied)
- Humanoid.Running:connect(onSoundRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- local runService = game:service("RunService");
- delay(0, function()
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end)
- -- regeneration
- while true do
- local s = wait(1)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.01 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end,o21)
- end))
- o22.Name = "Sound"
- o22.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end,o22)
- end))
- o23.Name = "Follow"
- o23.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- object=script.Parent["ThatTable"]
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- if dist<30 then
- script.Parent.Attack.Value=true
- script.Parent.Humanoid.WalkSpeed=0.01
- else
- script.Parent.Attack.Value=false
- script.Parent.Humanoid.WalkSpeed=16
- end
- end
- end
- return torso
- end
- while true do
- wait(0.1)
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end,o23)
- end))
- o24.Name = "RageTable"
- o24.Parent = o1
- o24.TextureId = "http://www.roblox.com/asset/?id=111900204"
- o24.GripPos = Vector3.new(0, 0, 0.300000012)
- o24.ToolTip = "Flip Out"
- o25.Name = "Handle"
- o25.Parent = o24
- o25.Position = Vector3.new(-8.9291172, 1.70003009, 88.2572327)
- o25.Rotation = Vector3.new(-90, 0, -163.75)
- o25.CanCollide = false
- o25.FormFactor = Enum.FormFactor.Custom
- o25.Size = Vector3.new(1.20000005, 0.669994831, 0.669994712)
- o25.CFrame = CFrame.new(-8.9291172, 1.70003009, 88.2572327, -0.960035264, 0.279879063, 0, 0, 0, 1, 0.279879063, 0.960035264, 0)
- o25.BottomSurface = Enum.SurfaceType.Smooth
- o25.TopSurface = Enum.SurfaceType.Smooth
- o25.Position = Vector3.new(-8.9291172, 1.70003009, 88.2572327)
- o26.Parent = o25
- o26.MeshId = "http://www.roblox.com/asset/?id=111868131"
- o26.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o26.TextureId = "http://www.roblox.com/asset/?id=111867655"
- o26.MeshType = Enum.MeshType.FileMesh
- o27.Parent = o25
- o27.SoundId = "http://www.roblox.com/asset/?id=111896685"
- o27.Volume = 1
- o28.Parent = o24
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function FindAttachedHumanoid(part)
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil
- end
- function MakeValue(class,name,value,parent)
- local temp = Instance.new(class)
- temp.Name = name
- temp.Value = value
- temp.Parent = parent
- return temp
- end
- local Tool = script.Parent
- local Handle = Tool:WaitForChild('Handle')
- local YellSound = Handle:WaitForChild('Sound')
- local AniScript = Tool:WaitForChild('AnimationPlayerScript')
- --http://www.roblox.com/Asset?ID=111898513'--http://www.roblox.com/Asset?ID=111880514'
- local ThrowAnimation = 'http://www.roblox.com/Asset?ID=111898867'
- local ThrowFace = 'http://www.roblox.com/asset?id=111882478'
- local ThrowTable= Instance.new('Part')
- do
- --ThrowTable.Shape = 'Ball'
- ThrowTable.FormFactor='Custom'
- ThrowTable.Size = Vector3.new(4.8, 2.43, 3.63)
- ThrowTable.CanCollide = true
- ThrowTable.Name="ThrownTable"
- local tmesh = Instance.new('SpecialMesh')
- tmesh.MeshId = 'http://www.roblox.com/asset/?id=111868131'
- tmesh.TextureId = 'http://www.roblox.com/asset/?id=111867655'
- tmesh.Parent = ThrowTable
- end
- local LookGyro= Instance.new('BodyGyro')
- LookGyro.maxTorque = Vector3.new(0,math.huge,0)
- local ActivateLock=false
- function onActivated()
- Tool.Parent.Follow.Disabled=true
- if ActivateLock then return end
- ActivateLock = true
- local character = Tool.Parent
- local humanoid = character:WaitForChild('Humanoid')
- local torso = character:WaitForChild('Torso')
- local head = character:WaitForChild('Head')
- local face = head:FindFirstChild('face')
- local oldFace =''
- if face then oldFace = face.Texture end
- humanoid.WalkSpeed = 0
- LookGyro.cframe = torso.CFrame - torso.CFrame.p
- LookGyro.Parent = torso
- local ntable = ThrowTable:Clone()
- ntable.CFrame = torso.CFrame+(torso.CFrame.lookVector*3)
- ntable.Parent = Workspace
- MakeValue('StringValue','aniId',ThrowAnimation,AniScript)
- wait(.5)
- YellSound:play()
- wait(.5)
- if face then
- face.Texture=ThrowFace
- end
- local bAVel = Instance.new('BodyAngularVelocity')
- bAVel.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bAVel.angularvelocity = ((torso.CFrame*CFrame.Angles(0,math.pi/2,0)).lookVector*10)
- bAVel.Parent = ntable
- local bVel = Instance.new('BodyVelocity')
- bVel.maxForce = Vector3.new(math.huge,0,math.huge)
- bVel.velocity = (torso.CFrame.lookVector*25)
- bVel.Parent = ntable
- ntable.Touched:connect(function(part)
- --print('GotTouched:' .. part.Name)
- Spawn(function()
- if part.Name == 'Terrain' then return end
- if part.Anchored then return end
- local hitHumanoid = FindAttachedHumanoid(part)
- if hitHumanoid then
- --print('HumanoidParent:'..hitHumanoid.Parent.Name)
- if hitHumanoid==humanoid then return end
- hitHumanoid.PlatformStand =true
- end
- if part.Size.x*part.Size.y*part.Size.z<=5*9*5 then
- part.Velocity = (Vector3.new((math.random()-.5)*2,math.random(),(math.random()-.5)*2).unit)*150
- end
- wait(3)
- print('got past wait')
- if hitHumanoid then
- print('unplatformstanding')
- hitHumanoid.PlatformStand=false
- hitHumanoid.Jump = true
- end
- end)
- end)
- Tool.Parent.ThatTable.Value=ThrowTable
- wait(6)
- LookGyro.Parent = nil
- humanoid.WalkSpeed = 16
- Tool.Parent.Attack.Value=false
- Tool.Parent.Follow.Disabled=false
- if face then
- face.Texture=oldFace
- end
- ntable.CanCollide = false
- game.Debris:AddItem(ntable,5)
- ActivateLock = false
- end
- while true do
- wait(1)
- if Tool.Parent.Attack.Value==true then
- onActivated()
- end
- end
- end,o28)
- end))
- o30.Name = "AnimationPlayerScript"
- o30.Parent = o24
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function FindAttachedHumanoid(part)
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil
- end
- script.ChildAdded:connect(function(nchild)
- local humanoid = FindAttachedHumanoid(script)
- local ani = Instance.new('Animation')
- ani.AnimationId= nchild.Value
- local aniTrack=humanoid:LoadAnimation(ani)
- aniTrack:Play()
- end)
- end,o30)
- end))
- o31.Name = "aniId"
- o31.Parent = o30
- o32.Name = "aniId"
- o32.Parent = o30
- o32.Value = "http://www.roblox.com/Asset?ID=111898867"
- o33.Name = "aniId"
- o33.Parent = o30
- o33.Value = "http://www.roblox.com/Asset?ID=111898867"
- o34.Name = "aniId"
- o34.Parent = o30
- o34.Value = "http://www.roblox.com/Asset?ID=111898867"
- o35.Name = "aniId"
- o35.Parent = o30
- o35.Value = "http://www.roblox.com/Asset?ID=111898867"
- o36.Name = "aniId"
- o36.Parent = o30
- o36.Value = "http://www.roblox.com/Asset?ID=111898867"
- o37.Name = "aniId"
- o37.Parent = o30
- o37.Value = "http://www.roblox.com/Asset?ID=111898867"
- o38.Name = "aniId"
- o38.Parent = o30
- o38.Value = "http://www.roblox.com/Asset?ID=111898867"
- o39.Name = "aniId"
- o39.Parent = o30
- o39.Value = "http://www.roblox.com/Asset?ID=111898867"
- o40.Name = "aniId"
- o40.Parent = o30
- o40.Value = "http://www.roblox.com/Asset?ID=111898867"
- o41.Name = "aniId"
- o41.Parent = o30
- o41.Value = "http://www.roblox.com/Asset?ID=111898867"
- o42.Name = "aniId"
- o42.Parent = o30
- o42.Value = "http://www.roblox.com/Asset?ID=111898867"
- o43.Name = "aniId"
- o43.Parent = o30
- o43.Value = "http://www.roblox.com/Asset?ID=111898867"
- o44.Name = "aniId"
- o44.Parent = o30
- o44.Value = "http://www.roblox.com/Asset?ID=111898867"
- o45.Name = "aniId"
- o45.Parent = o30
- o45.Value = "http://www.roblox.com/Asset?ID=111898867"
- o46.Name = "aniId"
- o46.Parent = o30
- o46.Value = "http://www.roblox.com/Asset?ID=111898867"
- o47.Name = "aniId"
- o47.Parent = o30
- o47.Value = "http://www.roblox.com/Asset?ID=111898867"
- o48.Name = "aniId"
- o48.Parent = o30
- o48.Value = "http://www.roblox.com/Asset?ID=111898867"
- o49.Name = "aniId"
- o49.Parent = o30
- o49.Value = "http://www.roblox.com/Asset?ID=111898867"
- o50.Name = "aniId"
- o50.Parent = o30
- o50.Value = "http://www.roblox.com/Asset?ID=111898867"
- o51.Name = "aniId"
- o51.Parent = o30
- o51.Value = "http://www.roblox.com/Asset?ID=111898867"
- o52.Name = "aniId"
- o52.Parent = o30
- o52.Value = "http://www.roblox.com/Asset?ID=111898867"
- o53.Name = "aniId"
- o53.Parent = o30
- o53.Value = "http://www.roblox.com/Asset?ID=111898867"
- o54.Name = "aniId"
- o54.Parent = o30
- o54.Value = "http://www.roblox.com/Asset?ID=111898867"
- o55.Name = "aniId"
- o55.Parent = o30
- o55.Value = "http://www.roblox.com/Asset?ID=111898867"
- o56.Name = "aniId"
- o56.Parent = o30
- o56.Value = "http://www.roblox.com/Asset?ID=111898867"
- o57.Name = "aniId"
- o57.Parent = o30
- o57.Value = "http://www.roblox.com/Asset?ID=111898867"
- o58.Name = "aniId"
- o58.Parent = o30
- o58.Value = "http://www.roblox.com/Asset?ID=111898867"
- o59.Name = "aniId"
- o59.Parent = o30
- o59.Value = "http://www.roblox.com/Asset?ID=111898867"
- o60.Name = "aniId"
- o60.Parent = o30
- o60.Value = "http://www.roblox.com/Asset?ID=111898867"
- o61.Name = "aniId"
- o61.Parent = o30
- o61.Value = "http://www.roblox.com/Asset?ID=111898867"
- o62.Name = "aniId"
- o62.Parent = o30
- o62.Value = "http://www.roblox.com/Asset?ID=111898867"
- o63.Name = "aniId"
- o63.Parent = o30
- o63.Value = "http://www.roblox.com/Asset?ID=111898867"
- o64.Name = "aniId"
- o64.Parent = o30
- o64.Value = "http://www.roblox.com/Asset?ID=111898867"
- o65.Name = "aniId"
- o65.Parent = o30
- o65.Value = "http://www.roblox.com/Asset?ID=111898867"
- o66.Name = "aniId"
- o66.Parent = o30
- o66.Value = "http://www.roblox.com/Asset?ID=111898867"
- o67.Name = "aniId"
- o67.Parent = o30
- o67.Value = "http://www.roblox.com/Asset?ID=111898867"
- o68.Name = "aniId"
- o68.Parent = o30
- o68.Value = "http://www.roblox.com/Asset?ID=111898867"
- o69.Name = "aniId"
- o69.Parent = o30
- o69.Value = "http://www.roblox.com/Asset?ID=111898867"
- o70.Name = "aniId"
- o70.Parent = o30
- o70.Value = "http://www.roblox.com/Asset?ID=111898867"
- o71.Name = "aniId"
- o71.Parent = o30
- o71.Value = "http://www.roblox.com/Asset?ID=111898867"
- o72.Name = "aniId"
- o72.Parent = o30
- o72.Value = "http://www.roblox.com/Asset?ID=111898867"
- o73.Name = "aniId"
- o73.Parent = o30
- o73.Value = "http://www.roblox.com/Asset?ID=111898867"
- o74.Name = "aniId"
- o74.Parent = o30
- o74.Value = "http://www.roblox.com/Asset?ID=111898867"
- o75.Name = "aniId"
- o75.Parent = o30
- o75.Value = "http://www.roblox.com/Asset?ID=111898867"
- o76.Name = "aniId"
- o76.Parent = o30
- o76.Value = "http://www.roblox.com/Asset?ID=111898867"
- o77.Name = "aniId"
- o77.Parent = o30
- o77.Value = "http://www.roblox.com/Asset?ID=111898867"
- o78.Name = "aniId"
- o78.Parent = o30
- o78.Value = "http://www.roblox.com/Asset?ID=111898867"
- o79.Name = "aniId"
- o79.Parent = o30
- o79.Value = "http://www.roblox.com/Asset?ID=111898867"
- o80.Name = "aniId"
- o80.Parent = o30
- o80.Value = "http://www.roblox.com/Asset?ID=111898867"
- o81.Name = "aniId"
- o81.Parent = o30
- o81.Value = "http://www.roblox.com/Asset?ID=111898867"
- o82.Name = "aniId"
- o82.Parent = o30
- o82.Value = "http://www.roblox.com/Asset?ID=111898867"
- o83.Name = "aniId"
- o83.Parent = o30
- o83.Value = "http://www.roblox.com/Asset?ID=111898867"
- o84.Name = "aniId"
- o84.Parent = o30
- o84.Value = "http://www.roblox.com/Asset?ID=111898867"
- o85.Name = "aniId"
- o85.Parent = o30
- o85.Value = "http://www.roblox.com/Asset?ID=111898867"
- o86.Name = "aniId"
- o86.Parent = o30
- o86.Value = "http://www.roblox.com/Asset?ID=111898867"
- o87.Name = "aniId"
- o87.Parent = o30
- o87.Value = "http://www.roblox.com/Asset?ID=111898867"
- o88.Name = "Attack"
- o88.Parent = o1
- o89.Name = "ThatTable"
- o89.Parent = o1
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 1
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Add Comment
Please, Sign In to add comment