Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn[[
- Shattered figure, made by projor22
- buttons:
- z - teleport
- x - attack
- c - wave
- f - anchor/unanchor
- ]]
- wait()
- player = owner
- script.Parent=nil
- local attack=false
- local anchored=false
- local name = " Shattered Figure "
- --character/joints
- local old = nil
- local mod = Instance.new("Model",workspace) mod.Name="> "..name.." <"
- local hed = Instance.new("FlagStand",mod) hed.Size = Vector3.new(2,1,1) hed.Name = "Head" hed.Transparency=0 hed.Anchored=false hed.CanCollide=false hed.Material=Enum.Material.Glass hed.Transparency=.3 hed.Color = Color3.fromRGB(130, 0, 0)
- local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- local tor = Instance.new("FlagStand",mod) tor.Name = "Torso" tor.Size = Vector3.new(2,2,1) tor.Transparency=0 tor.Anchored=false tor.CanCollide=true tor.Material=Enum.Material.Glass tor.Transparency=.3 tor.Color = Color3.fromRGB(170, 0, 0)
- local right_arm = Instance.new("FlagStand",mod) right_arm.Size=Vector3.new(1,2,1) right_arm.Transparency=0 right_arm.Name = "Right Arm" right_arm.Anchored=false right_arm.Material=Enum.Material.Glass right_arm.Transparency=.3 right_arm.Color = Color3.fromRGB(170, 0, 0)
- local left_arm = Instance.new("FlagStand",mod) left_arm.Size=Vector3.new(1,2,1) left_arm.Transparency=0 left_arm.Name = "Left Arm" left_arm.Anchored=false left_arm.Material=Enum.Material.Glass left_arm.Transparency=.3 left_arm.Color = Color3.fromRGB(170, 0, 0)
- local right_leg = Instance.new("FlagStand",mod) right_leg.Size=Vector3.new(1,2,1) right_leg.Transparency=0 right_leg.Name = "Right Leg" right_leg.Anchored=false right_leg.Material=Enum.Material.Glass right_leg.Transparency=.3 right_leg.Color = Color3.fromRGB(170, 0, 0)
- local left_leg = Instance.new("FlagStand",mod) left_leg.Size=Vector3.new(1,2,1) left_leg.Transparency=0 left_leg.Name = "Left Leg" left_leg.Anchored=false left_leg.Material=Enum.Material.Glass left_leg.Transparency=.3 left_leg.Color = Color3.fromRGB(170, 0, 0)
- Torso = tor
- old=hed
- function makeJoint(limbName, jointName, c0, c1)
- local limb = limbName
- limb:BreakJoints()
- local joint = Instance.new"Motor"
- joint.Name = jointName
- joint.Part0 = Torso
- joint.Part1 = limb
- joint.C0 = c0
- joint.C1 = c1
- joint.MaxVelocity = 0.3
- joint.archivable = false
- joint.Parent = Torso
- return joint
- end
- local Neck = makeJoint(hed,"Neck", 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))
- local RightShoulder = makeJoint(right_arm, "Right Shoulder", 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))
- local LeftShoulder = makeJoint(left_arm, "Left Shoulder", 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))
- local RightHip = makeJoint(right_leg, "Right Hip", 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))
- local LeftHip = makeJoint(left_leg, "Left Hip", 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))
- --character/joints
- --kill
- function Kill(die)
- die:BreakJoints()
- for i,g in pairs(die:GetDescendants()) do
- if g:IsA("BasePart") then
- local lol = nil
- lol = g
- lol.Color = Color3.fromRGB(170, 0, 0)
- lol.Transparency=.3
- lol.Material=Enum.Material.Glass
- local check = player.Character.Torso:FindFirstChild("mp3")
- if check then
- check.Volume = math.random(1,3)
- check:Play()
- else
- local sound = Instance.new("Sound",player.Character.Torso)
- sound.SoundId = "rbxassetid://516789356"
- sound.Volume = math.random(1,3)
- -- sound.PlayOnRemove=true
- sound.Name="mp3"
- end
- local bp = Instance.new("BodyVelocity",lol)
- bp.MaxForce = Vector3.new(0,math.huge,0)
- lol.Transparency=.6
- local died = Instance.new("FlagStand",workspace) died.CanCollide=true
- local mesher = lol:FindFirstChildOfClass("SpecialMesh")
- if mesher then
- mesher.Parent=died
- end
- g:Destroy()
- died.CFrame=lol.CFrame
- -- local particle1 = Instance.new("FlagStand",died) particle1.Size=Vector3.new(math.random(),math.random(),math.random()) particle1.Color=Color3.new() particle1.Transparency=.6 particle1.CFrame=died.CFrame
- died.Size=lol.Size
- died.Material=lol.Material
- died.Transparency=lol.Transparency
- died.BrickColor=lol.BrickColor
- died.Name= "Shattered "..lol.Name
- end
- end
- end
- --kill
- function remotes()
- --remotes
- local anchor = Instance.new("RemoteEvent",player.Backpack) anchor.Name="134"
- local tp = Instance.new("RemoteEvent",player.Backpack) tp.Name="12345"
- local wave = Instance.new("RemoteEvent",player.Backpack) wave.Name = "UR3q985"
- local at = Instance.new("RemoteEvent",player.Backpack) at.Name="0813"
- --remotes
- tor.Touched:Connect(function(Part)
- if attack==true then
- if Part.Parent.ClassName == "Model" then
- Kill(Part.Parent)
- elseif Part.Parent.Parent.ClassName == "Model" then
- Kill(Part.Parent.Parent)
- end
- end
- end)
- --server events
- anchor.OnServerEvent:Connect(function(lol,an)
- if anchored==false then
- anchored=true
- tor.Anchored=true
- else
- anchored=false
- tor.Anchored=false
- end
- end)
- tp.OnServerEvent:Connect(function(FART, position)
- tor.Position = position + Vector3.new(0,5,0)
- end)
- at.OnServerEvent:Connect(function(fart, att)
- if attack==false then
- attack=true
- local motor1 = tor:FindFirstChild("Right Shoulder")
- local motor2 = tor:FindFirstChild("Left Shoulder")
- if motor1 then
- if motor2 then
- motor2.DesiredAngle=-1.56
- end
- motor1.DesiredAngle=1.56
- end
- else
- attack=false
- local motor3 = tor:FindFirstChild("Right Shoulder")
- local motor4 = tor:FindFirstChild("Left Shoulder")
- if motor3 then
- if motor4 then
- motor4.DesiredAngle=0
- end
- motor3.DesiredAngle=0
- end
- end
- end)
- local WAV = false
- wave.OnServerEvent:Connect(function(fat, wav)
- if mod then
- local motor = tor:FindFirstChild("Right Shoulder")
- if motor then
- if WAV==false then
- WAV=true
- motor.DesiredAngle=3.14
- else
- WAV=false
- motor.DesiredAngle=0
- end
- end
- end
- end)
- end
- function refit1()
- player.Character=mod
- wait()
- NLS([[
- local player = game:GetService("Players").LocalPlayer
- local mouse = player:GetMouse()
- local hum = Instance.new("Humanoid",player.Character) hum.MaxHealth = 300 hum.Health=300 hum.Name = "" hum.BreakJointsOnDeath=false hum.RequiresNeck=false hum.WalkSpeed=13
- workspace.CurrentCamera:Destroy()
- wait()
- workspace.CurrentCamera.CameraSubject = hum
- workspace.CurrentCamera.CameraType = "Custom"
- --remotes
- local ancho = player.Backpack:WaitForChild("134")
- local wave = player.Backpack:WaitForChild("UR3q985")
- local attack = player.Backpack:WaitForChild("0813")
- local tp = player.Backpack:WaitForChild("12345")
- --
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'f' then
- ancho:FireServer("WHAT")
- end
- end)
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'z' then
- tp:FireServer(mouse.Hit.p)
- end
- end)
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'x' then
- attack:FireServer("beam")
- end
- end)
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'c' then
- wave:FireServer("noice")
- end
- end)
- ]],player.Backpack)
- remotes()
- end
- local character = player.Character
- if character then
- local head = character:FindFirstChild("Head")
- if head then
- hed.CFrame=head.CFrame
- refit1()
- else
- refit1()
- end
- end
- function refit()
- mod = Instance.new("Model",workspace) mod.Name="> "..name.." <"
- hed = Instance.new("FlagStand",mod) hed.Size = Vector3.new(2,1,1) hed.Name = "Head" hed.Transparency=0 hed.Anchored=false hed.CanCollide=false hed.Material=Enum.Material.Glass hed.Transparency=.3 hed.Color = Color3.fromRGB(130, 0, 0)
- mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- tor = Instance.new("FlagStand",mod) tor.Name = "Torso" tor.Size = Vector3.new(2,2,1) tor.Transparency=0 tor.Anchored=false tor.CanCollide=true tor.Material=Enum.Material.Glass tor.Transparency=.3 tor.Color = Color3.fromRGB(170, 0, 0)
- right_arm = Instance.new("FlagStand",mod) right_arm.Size=Vector3.new(1,2,1) right_arm.Transparency=0 right_arm.Name = "Right Arm" right_arm.Anchored=false right_arm.Material=Enum.Material.Glass right_arm.Transparency=.3 right_arm.Color = Color3.fromRGB(170, 0, 0)
- left_arm = Instance.new("FlagStand",mod) left_arm.Size=Vector3.new(1,2,1) left_arm.Transparency=0 left_arm.Name = "Left Arm" left_arm.Anchored=false left_arm.Material=Enum.Material.Glass left_arm.Transparency=.3 left_arm.Color = Color3.fromRGB(170, 0, 0)
- right_leg = Instance.new("FlagStand",mod) right_leg.Size=Vector3.new(1,2,1) right_leg.Transparency=0 right_leg.Name = "Right Leg" right_leg.Anchored=false right_leg.Material=Enum.Material.Glass right_leg.Transparency=.3 right_leg.Color = Color3.fromRGB(170, 0, 0)
- left_leg = Instance.new("FlagStand",mod) left_leg.Size=Vector3.new(1,2,1) left_leg.Transparency=0 left_leg.Name = "Left Leg" left_leg.Anchored=false left_leg.Material=Enum.Material.Glass left_leg.Transparency=.3 left_leg.Color = Color3.fromRGB(170, 0, 0)
- Torso = tor
- function makeJoint(limbName, jointName, c0, c1)
- local limb = limbName
- limb:BreakJoints()
- local joint = Instance.new"Motor"
- joint.Name = jointName
- joint.Part0 = Torso
- joint.Part1 = limb
- joint.C0 = c0
- joint.C1 = c1
- joint.MaxVelocity = 0.3
- joint.archivable = false
- joint.Parent = Torso
- return joint
- end
- local Neck = makeJoint(hed,"Neck", 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))
- local RightShoulder = makeJoint(right_arm, "Right Shoulder", 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))
- local LeftShoulder = makeJoint(left_arm, "Left Shoulder", 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))
- local RightHip = makeJoint(right_leg, "Right Hip", 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))
- local LeftHip = makeJoint(left_leg, "Left Hip", 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))
- hed.CFrame = old.CFrame
- old=hed
- refit1()
- end
- game.DescendantRemoving:Connect(function(h)
- if h:IsDescendantOf(mod) then
- refit()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement