Advertisement
Timon-Gun

Скрипты скримера

Aug 31st, 2023 (edited)
1,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. -- 1 скрипт --
  2. script.Parent.Touched:Connect(function(hit)
  3.     if hit.Parent:FindFirstChild("Humanoid") then
  4.         wait(2)
  5.         hit.Parent.Humanoid.Health = 0
  6.     end
  7. end)
  8.  
  9. -- 2 скрипт --
  10. if workspace:WaitForChild("Jumpscare"):WaitForChild("--название монтстра--"):WaitForChild("--название тригера--").Touched:Connect(function()
  11.         local camerapart = workspace.CurrentCamera
  12.         camerapart.CameraType = Enum.CameraType.Scriptable
  13.         camerapart.CFrame = workspace:WaitForChild("Jumpscare"):WaitForChild("Monster"):WaitForChild("CameraPart").CFrame
  14.         camerapart.CameraSubject = workspace:WaitForChild("Jumpscare"):WaitForChild("--название монтстра--"):WaitForChild("-- название камеры --").Parent
  15.         wait(3)
  16.         camerapart.CameraType = Enum.CameraType.Custom
  17.         camerapart = game:WaitForChild("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  18.         camerapart.CameraSubject = game:WaitForChild("Players").LocalPlayer.Character
  19.        
  20.     end) then
  21. end
  22. -- 3 скрипт --
  23. script.Parent.Touched:Connect(function(hit)
  24.     if hit.Parent:FindFirstChild("Humanoid") then
  25.         if game:WaitForChild("Players"):FindFirstChild(hit.Parent.Name) then
  26.             game:WaitForChild("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("--название тригера--"):FireClient(game:WaitForChild("Players"):FindFirstChild(hit.Parent.Name))
  27.             script.Parent.Parent.HumanoidRootPart.Position = Vector3.new(-- позиция HumanoidRootPart --)
  28.             local animplayed = script.Parent.Parent.Humanoid.Animator:LoadAnimation(script.Parent.Parent.Animation)
  29.             animplayed:Play()
  30.             hit.Parent:FindFirstChild("Humanoid").WalkSpeed = 0
  31.             wait(3)
  32.             hit.Parent:FindFirstChild("Humanoid").WalkSpeed = 16
  33.         end
  34.     end
  35. end)
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement