Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Decal3 = Instance.new("Decal")
- Script4 = Instance.new("Script")
- Part5 = Instance.new("Part")
- Motor6D6 = Instance.new("Motor6D")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Decal12 = Instance.new("Decal")
- Motor6D13 = Instance.new("Motor6D")
- Motor6D14 = Instance.new("Motor6D")
- Motor6D15 = Instance.new("Motor6D")
- Motor6D16 = Instance.new("Motor6D")
- Motor6D17 = Instance.new("Motor6D")
- Weld18 = Instance.new("Weld")
- Sound19 = Instance.new("Sound")
- ParticleEmitter20 = Instance.new("ParticleEmitter")
- Humanoid21 = Instance.new("Humanoid")
- Shirt22 = Instance.new("Shirt")
- Pants23 = Instance.new("Pants")
- ShirtGraphic24 = Instance.new("ShirtGraphic")
- Accessory25 = Instance.new("Accessory")
- Part26 = Instance.new("Part")
- SpecialMesh27 = Instance.new("SpecialMesh")
- Vector3Value28 = Instance.new("Vector3Value")
- Camera29 = Instance.new("Camera")
- BodyColors30 = Instance.new("BodyColors")
- Script31 = Instance.new("Script")
- Model0.Name = "Tabby_cxt"
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(28.0261288, 1.88851905, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(28.0261288, 1.88851905, 34.7790794)
- Part1.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(0.61711359, 0.308556736, 0.308556736)
- Part1.BrickColor = BrickColor.new("Cool yellow")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Cool yellow")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal3.Name = "face"
- Decal3.Parent = Part1
- Decal3.Texture = "http://www.roblox.com/asset/?id=15431991"
- Script4.Parent = Part1
- table.insert(cors,sandbox(Script4,function()
- function die(hit)
- script.Parent.Parent.Humanoid.Health = 0
- script.Parent.Parent.Torso.Sound:Play()
- script.Parent.Parent.Torso.ParticleEmitter:Emit()
- script.Parent:remove()
- end
- script.Parent.Touched:Connect(die)
- end))
- Part5.Name = "HumanoidRootPart"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(28.0261288, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(28.0261288, 1.42568398, 34.7790794)
- Part5.Transparency = 1
- Part5.Size = Vector3.new(0.61711359, 0.617113471, 0.308556736)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.CanCollide = false
- Part5.LeftParamA = 0
- Part5.LeftParamB = 0
- Part5.RightParamA = 0
- Part5.RightParamB = 0
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Motor6D6.Name = "RootJoint"
- Motor6D6.Parent = Part5
- Motor6D6.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Motor6D6.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Motor6D6.Part0 = Part5
- Motor6D6.Part1 = Part11
- Motor6D6.part1 = Part11
- Part7.Name = "Left Arm"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(27.5632935, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(27.5632935, 1.42568398, 34.7790794)
- Part7.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part7.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
- Part7.BrickColor = BrickColor.new("Cool yellow")
- Part7.CanCollide = false
- Part7.brickColor = BrickColor.new("Cool yellow")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "Left Leg"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(27.871851, 0.808570504, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(27.871851, 0.808570504, 34.7790794)
- Part8.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part8.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Bright blue")
- Part8.CanCollide = false
- Part8.brickColor = BrickColor.new("Bright blue")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Part9.Name = "Right Arm"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(28.4889641, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(28.4889641, 1.42568398, 34.7790794)
- Part9.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part9.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
- Part9.BrickColor = BrickColor.new("Cool yellow")
- Part9.CanCollide = false
- Part9.brickColor = BrickColor.new("Cool yellow")
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.formFactor = Enum.FormFactor.Symmetric
- Part10.Name = "Right Leg"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(28.1804066, 0.808570504, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(28.1804066, 0.808570504, 34.7790794)
- Part10.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part10.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Bright blue")
- Part10.CanCollide = false
- Part10.brickColor = BrickColor.new("Bright blue")
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Part11.Name = "Torso"
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(28.0261288, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part11.Position = Vector3.new(28.0261288, 1.42568398, 34.7790794)
- Part11.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part11.Size = Vector3.new(0.61711359, 0.617113471, 0.308556736)
- Part11.BrickColor = BrickColor.new("Dark green")
- Part11.LeftParamA = 0
- Part11.LeftParamB = 0
- Part11.LeftSurface = Enum.SurfaceType.Weld
- Part11.RightParamA = 0
- Part11.RightParamB = 0
- Part11.RightSurface = Enum.SurfaceType.Weld
- Part11.brickColor = BrickColor.new("Dark green")
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.formFactor = Enum.FormFactor.Symmetric
- Decal12.Name = "roblox"
- Decal12.Parent = Part11
- Motor6D13.Name = "Right Shoulder"
- Motor6D13.Parent = Part11
- Motor6D13.C0 = CFrame.new(0.308556795, 0.154278368, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D13.C1 = CFrame.new(-0.154278398, 0.154278368, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D13.Part0 = Part11
- Motor6D13.Part1 = Part9
- Motor6D13.part1 = Part9
- Motor6D14.Name = "Right Hip"
- Motor6D14.Parent = Part11
- Motor6D14.C0 = CFrame.new(0.308556795, -0.308556736, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D14.C1 = CFrame.new(0.154278398, 0.308556736, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D14.Part0 = Part11
- Motor6D14.Part1 = Part10
- Motor6D14.part1 = Part10
- Motor6D15.Name = "Neck"
- Motor6D15.Parent = Part11
- Motor6D15.C0 = CFrame.new(0, 0.308556736, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Motor6D15.C1 = CFrame.new(0, -0.154278368, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Motor6D15.Part0 = Part11
- Motor6D15.Part1 = Part1
- Motor6D15.part1 = Part1
- Motor6D16.Name = "Left Shoulder"
- Motor6D16.Parent = Part11
- Motor6D16.C0 = CFrame.new(-0.308556795, 0.154278368, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D16.C1 = CFrame.new(0.154278398, 0.154278368, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D16.Part0 = Part11
- Motor6D16.Part1 = Part7
- Motor6D16.part1 = Part7
- Motor6D17.Name = "Left Hip"
- Motor6D17.Parent = Part11
- Motor6D17.C0 = CFrame.new(-0.308556795, -0.308556736, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D17.C1 = CFrame.new(-0.154278398, 0.308556736, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D17.Part0 = Part11
- Motor6D17.Part1 = Part8
- Motor6D17.part1 = Part8
- Weld18.Name = "BTWeld"
- Weld18.Parent = Part11
- Weld18.C1 = CFrame.new(0.154277802, -0.55540216, -0.061794281, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Weld18.Part0 = Part11
- Weld18.Part1 = Part26
- Weld18.part1 = Part26
- Sound19.Parent = Part11
- Sound19.SoundId = "rbxassetid://429400881"
- Sound19.Volume = 1
- ParticleEmitter20.Parent = Part11
- ParticleEmitter20.Rotation = NumberRange.new(50, 360)
- ParticleEmitter20.Color = ColorSequence.new(Color3.new(0.764294, 0, 0.0264744),Color3.new(0.764294, 0, 0.0264744))
- ParticleEmitter20.Enabled = false
- ParticleEmitter20.LightInfluence = 1
- ParticleEmitter20.Texture = "rbxassetid://90124590"
- ParticleEmitter20.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter20.Acceleration = Vector3.new(0, -10, 0)
- ParticleEmitter20.Rate = 100
- ParticleEmitter20.RotSpeed = NumberRange.new(20, 200)
- ParticleEmitter20.SpreadAngle = Vector2.new(90, 90)
- ParticleEmitter20.VelocitySpread = 90
- Humanoid21.Parent = Model0
- Humanoid21.LeftLeg = Part8
- Humanoid21.RightLeg = Part10
- Humanoid21.Torso = Part5
- Shirt22.Name = "Shirt"
- Shirt22.Parent = Model0
- Shirt22.ShirtTemplate = "http://www.roblox.com/asset/?id=732890040"
- Pants23.Name = "Pants"
- Pants23.Parent = Model0
- Pants23.PantsTemplate = "http://www.roblox.com/asset/?id=379753257"
- ShirtGraphic24.Parent = Model0
- ShirtGraphic24.Graphic = "http://www.roblox.com/asset/?id=2082499872"
- Accessory25.Name = "CatEgg"
- Accessory25.Parent = Model0
- Accessory25.AttachmentPoint = CFrame.new(0.5, 0.200000003, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Accessory25.AttachmentPos = Vector3.new(0.5, 0.200000003, -0.200000003)
- Part26.Name = "Handle"
- Part26.Parent = Accessory25
- Part26.CFrame = CFrame.new(27.871851, 1.98108613, 34.8408737, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
- Part26.Position = Vector3.new(27.871851, 1.98108613, 34.8408737)
- Part26.Size = Vector3.new(0.697338343, 0.60785675, 0.635626853)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.CanCollide = false
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.FormFactor = Enum.FormFactor.Symmetric
- Part26.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh27.Parent = Part26
- SpecialMesh27.MeshId = "http://www.roblox.com/asset/?id=379552190"
- SpecialMesh27.Offset = Vector3.new(0.349999994, -0.224999994, -0.119999997)
- SpecialMesh27.Scale = Vector3.new(0.401123822, 0.401123732, 0.401123732)
- SpecialMesh27.TextureId = "http://www.roblox.com/asset/?id= 379541232"
- SpecialMesh27.MeshType = Enum.MeshType.FileMesh
- Vector3Value28.Name = "OriginalSize"
- Vector3Value28.Parent = Part26
- Vector3Value28.Value = Vector3.new(2.25999999, 1.96999991, 2.05999994)
- Camera29.Name = "ThumbnailCamera"
- Camera29.Parent = Accessory25
- Camera29.CFrame = CFrame.new(-0.427338123, 17.7189884, 17.3396072, -0.981754601, 0.0109182848, -0.189838737, -9.31322464e-10, 0.998350263, 0.057418596, 0.190152436, 0.0563709699, -0.980134904)
- Camera29.CoordinateFrame = CFrame.new(-0.427338123, 17.7189884, 17.3396072, -0.981754601, 0.0109182848, -0.189838737, -9.31322464e-10, 0.998350263, 0.057418596, 0.190152436, 0.0563709699, -0.980134904)
- Camera29.Focus = CFrame.new(-0.0476591438, 17.6041508, 19.2998848, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera29.focus = CFrame.new(-0.0476591438, 17.6041508, 19.2998848, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- BodyColors30.Parent = Model0
- BodyColors30.HeadColor = BrickColor.new("Neon orange")
- BodyColors30.HeadColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- BodyColors30.LeftArmColor = BrickColor.new("Neon orange")
- BodyColors30.LeftArmColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- BodyColors30.LeftLegColor = BrickColor.new("Neon orange")
- BodyColors30.LeftLegColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- BodyColors30.RightArmColor = BrickColor.new("Neon orange")
- BodyColors30.RightArmColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- BodyColors30.RightLegColor = BrickColor.new("Neon orange")
- BodyColors30.RightLegColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- BodyColors30.TorsoColor = BrickColor.new("Neon orange")
- BodyColors30.TorsoColor3 = Color3.new(0.835294, 0.45098, 0.239216)
- Script31.Name = "Animate"
- Script31.Parent = Model0
- table.insert(cors,sandbox(Script31,function()
- local Figure = script.Parent
- local Torso = Figure:WaitForChild("Torso")
- local RightShoulder = Torso:WaitForChild("Right Shoulder")
- local LeftShoulder = Torso:WaitForChild("Left Shoulder")
- local RightHip = Torso:WaitForChild("Right Hip")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local Neck = Torso:WaitForChild("Neck")
- local Humanoid = Figure:WaitForChild("Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- local isSeated = false
- -- functions
- function onRunning(speed)
- if isSeated then return end
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- isSeated = false
- 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()
- isSeated = true
- pose = "Seated"
- print("Seated")
- 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
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 1
- LeftShoulder.DesiredAngle = -1
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveClimb()
- 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()
- print("Move Sit")
- 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()
- kidTable = Figure:children()
- if (kidTable ~= nil) then
- numKids = #kidTable
- for i=1,numKids do
- if (kidTable[i].className == "Tool") then return kidTable[i] end
- end
- end
- return nil
- end
- function getToolAnim(tool)
- c = tool:children()
- for i=1,#c do
- if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
- return c[i]
- 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 == "Climbing") then
- moveClimb()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- if (pose == "Running") then
- amplitude = 1
- frequency = 9
- else
- amplitude = 0.1
- frequency = 1
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- RightShoulder.DesiredAngle = desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- local tool = getTool()
- if tool ~= nil then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject ~= nil 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)
- -- main program
- local nextTime = 0
- local runService = game:service("RunService");
- while Figure.Parent ~= nil do
- time = runService.Stepped:wait()
- if time > nextTime then
- move(time)
- nextTime = time + 0.1
- end
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- wait(1)
- owner = game:GetService("Players")["Tabby_Cxt"]
- Character = owner.Character
- owner.Character = workspace["Tabby_cxt"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement