Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local oldpose = nil
- player=game:GetService("Players").projor22
- local mod1 = Instance.new("Model",workspace.Terrain) mod1.Name = ">"..player.Name.."<"
- character = player.Character
- player.Character = mod1
- wait()
- function cam()
- NLS([[
- player=game:GetService("Players").LocalPlayer
- mouse=player:GetMouse()
- mod=player.Character
- local brick = Instance.new("FlagStand",mod) brick.Name= "Torso" brick.Size=Vector3.new(2,1,4) brick.Transparency=1
- local hum = Instance.new("Humanoid",mod) 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 re = player.Backpack:WaitForChild("ok")
- local brick1 = player.Backpack:WaitForChild("brick")
- local touch = player.Backpack:WaitForChild("touched")
- --remotes
- local RunService = game:GetService("RunService")
- local RATE_PER_SECOND = 2
- RunService.RenderStepped:Connect(function(step)
- local increment = RATE_PER_SECOND * step
- if brick1 then
- brick1:FireServer(brick.CFrame)
- end
- end)
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'z' then
- brick.Position=mouse.Hit.p
- end
- end)
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'q' then
- re:FireServer("yes")
- end
- end)
- local attack = false
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'x' then
- if attack == false then
- attack=true
- effect(brick)
- wait(1)
- attack=false
- end
- end
- end)
- local anchor = false
- mouse.KeyDown:connect(function(Key)
- Key = Key:lower()
- if Key == 'f' then
- if anchor == false then
- anchor=true
- brick.Anchored=true
- else
- anchor=false
- brick.Anchored=false
- end
- end
- end)
- brick.Touched:Connect(function(victim)
- if victim==workspace.Brick then
- else
- if attack == true then
- touch:FireServer(victim)
- end
- end
- end)
- function effect(brickpart)
- --local brickpart=player.Character.Torso
- local redpart = Instance.new("FlagStand",player.Character) redpart.Material=Enum.Material.Glass
- redpart.CanCollide=false redpart.Transparency=.5
- redpart.CFrame=brickpart.CFrame redpart.Color=Color3.new(0.666667, 0, 0) local welder = Instance.new("Weld",redpart) welder.Part0=redpart welder.Part1=brickpart
- redpart.Size=brickpart.Size + Vector3.new(.1,.1,.1)
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1)
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1)
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- wait(.05)
- redpart.Size=redpart.Size + Vector3.new(.1,.1,.1) redpart.Transparency=redpart.Transparency + .09
- redpart:Destroy()
- end
- ]],player.Backpack)
- end
- cam()
- --remotes
- local RE = Instance.new("RemoteEvent",player.Backpack) RE.Name="ok"
- local brickserver = Instance.new("RemoteEvent",player.Backpack) brickserver.Name="brick"
- local touch = Instance.new("RemoteEvent",player.Backpack) touch.Name="touched"
- --remotes
- RE.OnServerEvent:Connect(function(pl,re)
- refit2()
- end)
- touch.OnServerEvent:Connect(function(pl,Part)
- if Part.Parent.ClassName == "Model" then
- Kill(Part.Parent)
- elseif Part.Parent.Parent.ClassName == "Model" then
- Kill(Part.Parent.Parent)
- end
- end)
- local brick = nil
- brick = Instance.new("Seat",workspace) brick.Name= "Brick" brick.Size=Vector3.new(2,1,4) brick.CanCollide=false brick.Anchored=true
- brickserver.OnServerEvent:Connect(function(pl,fakebrick)
- if brick then
- brick.CFrame = fakebrick
- oldpose = fakebrick
- end
- end)
- 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 = g:FindFirstChild("mp3")
- if check then
- check.Volume = math.random(1,3)
- else
- local sound = Instance.new("Sound",g)
- 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='life'
- end
- end
- end
- function refit()
- brick = Instance.new("Seat",workspace) brick.Name= "Brick" brick.Size=Vector3.new(2,1,4) brick.CanCollide=false brick.Anchored=true
- end
- game.DescendantRemoving:Connect(function(h)
- if h == brick then
- refit()
- end
- end)
- game.DescendantRemoving:Connect(function(h)
- if h == mod1 then
- refit2()
- end
- end)
- function refit2()
- mod1 = Instance.new("Model",workspace.Terrain) mod1.Name = ">"..player.Name.."<"
- character = player.Character
- player.Character = mod1
- wait()
- cam()
- --remotes
- RE = Instance.new("RemoteEvent",player.Backpack) RE.Name="ok"
- local brickserver2 = Instance.new("RemoteEvent",player.Backpack) brickserver2.Name="brick"
- local touch2 = Instance.new("RemoteEvent",player.Backpack) touch2.Name="touched"
- --remotes
- RE.OnServerEvent:Connect(function(pl,re)
- refit2()
- end)
- brickserver2.OnServerEvent:Connect(function(pl,fakebrick)
- if brick then
- brick.CFrame = fakebrick
- end
- end)
- touch2.OnServerEvent:Connect(function(pl,Part)
- if Part.Parent.ClassName == "Model" then
- Kill(Part.Parent)
- elseif Part.Parent.Parent.ClassName == "Model" then
- Kill(Part.Parent.Parent)
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement