pz_java

2d script

Nov 3rd, 2017
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. script.Name = "2dScript"
  2. script.Parent = game.Players.LocalPlayer.PlayerScripts
  3.  
  4. game:GetService("RunService").RenderStepped:connect(function()
  5. for _,part in pairs(game.Workspace:GetDescendants()) do
  6. if part:IsA("BasePart") then
  7. if not part.Parent:FindFirstChild("Humanoid") then
  8. if not part.Parent.Parent:FindFirstChild("Humanoid") then
  9. part.CFrame = CFrame.new(Vector3.new(part.CFrame.p.X,part.CFrame.p.Y,0),Vector3.new(part.CFrame.p.X,part.CFrame.p.Y,0)+part.CFrame.lookVector*999999999)
  10. end
  11. else
  12. if part.Name == "HumanoidRootPart" then
  13. part.CFrame = CFrame.new(Vector3.new(part.CFrame.p.X,part.CFrame.p.Y,0),Vector3.new(part.CFrame.p.X,part.CFrame.p.Y,0)+part.CFrame.lookVector*999999999)
  14. end
  15. end
  16.  
  17. end
  18. end
  19. for _,player in pairs(game.Players:GetPlayers()) do
  20. if player:FindFirstChild("PlayerScripts") then
  21. if not player.PlayerScripts:FindFirstChild("2dScript") then
  22. script:Clone().Parent = player.PlayerScripts
  23. end
  24. end
  25. end
  26. if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  27. game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p+Vector3.new(0,5,20),game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p)
  28. end
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment