I want to make a fnaf game but i dont know where to start on making the power i got the door's ready animatronic's moving all i need is the time and power? here is what i have

all the scripts work i even try then on a server and you can play my game's in my main lobby game room its called (FOX in a BOX)

HERE IS THE SCRIPT I USED TO MAKE THEM MOVE


-- PB mean's plush bonnie while true do wait(15) PBstand = game.Workspace:FindFirstChild("PBstand") if PBstand == nil then game.ReplicatedStorage.PB1:Clone().Parent = game.Workspace wait(7) game.ReplicatedStorage.PB2:Clone().Parent = game.Workspace game.Workspace.PB1:remove() wait(7) game.ReplicatedStorage.PB3:Clone().Parent = game.Workspace game.Workspace.PB2:remove() wait(9) game.ReplicatedStorage.PB4:Clone().Parent = game.Workspace game.Workspace.PB3:remove() wait(7) game.ReplicatedStorage.PB5:Clone().Parent = game.Workspace game.Workspace.PB4:remove() wait(7) game.ReplicatedStorage.PB6:Clone().Parent = game.Workspace game.Workspace.PB5:remove() wait(7) game.ReplicatedStorage.PB7:Clone().Parent = game.Workspace game.Workspace.PB6:remove() wait(5) if game.Workspace.Door1Closed.Value == false then game.ReplicatedStorage.PB8:Clone().Parent = game.Workspace game.Workspace.PB7:remove() else game.Workspace.PB7:remove() end else game.Workspace.PBstand:remove() game.ReplicatedStorage.PB1:Clone().Parent = game.Workspace wait(7) game.ReplicatedStorage.PB2:Clone().Parent = game.Workspace game.Workspace.PB1:remove() wait(7) game.ReplicatedStorage.PB3:Clone().Parent = game.Workspace game.Workspace.PB2:remove() wait(9) game.ReplicatedStorage.PB4:Clone().Parent = game.Workspace game.Workspace.PB3:remove() wait(7) game.ReplicatedStorage.PB5:Clone().Parent = game.Workspace game.Workspace.PB4:remove() wait(7) game.ReplicatedStorage.PB6:Clone().Parent = game.Workspace game.Workspace.PB5:remove() wait(7) game.ReplicatedStorage.PB7:Clone().Parent = game.Workspace game.Workspace.PB6:remove() wait(5) if game.Workspace.Door1Closed.Value == false then game.ReplicatedStorage.PB8:Clone().Parent = game.Workspace game.Workspace.PB7:remove() else game.Workspace.PB7:remove() end end end


THIS IS THE DOOR SCRIPT FOR ONE OF THE DOOR'S I HAVE TWO + you'll need the (Door1Closed) Value


open = true

function c() if open == false then script.Parent.Sound1:Play() script.Parent.Parent.Clicker.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Clicker.ClickDetector.MaxActivationDistance = 0 game.Workspace.Door1Closed.Value=false for i = 0,22 do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,.6,0) wait(.01) end

	script.Parent.Parent.Clicker.ClickDetector.MaxActivationDistance = 32
	open = true
elseif open == true then
	game.Workspace.Door1Closed.Value=true
	script.Parent.Sound1:Play()
	script.Parent.Parent.Clicker.BrickColor = BrickColor.new("Bright green")
	script.Parent.Parent.Clicker.ClickDetector.MaxActivationDistance = 0
	for i = 0,22 do
		script.Parent.CFrame = script.Parent.CFrame - Vector3.new(0,.6,0)
		wait(.01)
	end
	script.Parent.Parent.Clicker.ClickDetector.MaxActivationDistance = 32
	open = false
end

end

script.Parent.Parent.Clicker.ClickDetector.MouseClick:connect(c)



PLAYER CAM


plr=game.Players.LocalPlayer cam=game.Workspace.CurrentCamera chr=nil

plr.CharacterAdded:connect(function(character) chr=character plr.CameraMode="LockFirstPerson" --Other choices are: -- 1 -- Enum.CameraMode.LockFirstPerson end)

while false do wait() cam.CameraType=0 -- Type is Fixed cam.CoordinateFrame=CFrame.new(200,10,0) cam.Focus.CFrame.new(200,7,50) cam.FieldOfView=20 end


JUST SOMETHING I USED


--PUT IN STARTERGUI IN ORDER TO WORK!!!!


game.StarterGui:SetCoreGuiEnabled("PlayerList", false) game.StarterGui:SetCoreGuiEnabled("Chat", false) game.StarterGui:SetCoreGuiEnabled("Health", true) game.StarterGui:SetCoreGuiEnabled("Backpack", false)


THIS SCRIPT IS IN TEXT BUTTON IN A GUI


wait(0.1) script.Parent.Modal = true game.Workspace.Camera.CameraType = "Custom"


and i found a anti-jump

all that is need for a fnaf game but no power and no time and no night save can you help me

2 comments

0

tl;dr

0

what