Script which takers players camera position and navigates to the fixed camera view.
Some of the features this script includes are:
Starter GUI
Play Button - Player can continue game.
Update Button - Displays a update log of the recent updates
Quit - Kicks the player out of the game.
Welcome Sign - Invites the player to the game.
Local Script which takes players camera position and adjusts to the fixed camera position.
Local Script which makes UI visible when clicked a certain button.
Script which locks and unlocks doors with click detectors
Some of the features this script includes are:
Opens Door - Allows the player to enter through the door
Closes Door - Locks the door making the player not pass through.
Light Animation - Once clicked either open or close detectors, flashing light will indicate that it is being open or closed.
local Green = game.Workspace["DoorArea (Gamer)"].Green.ClickDetector
local GreenBtn = game.Workspace["DoorArea (Gamer)"].Green
local GreenBlinks = 5
local Red = game.Workspace["DoorArea (Gamer)"].Red.ClickDetector
local RedBtn = game.Workspace["DoorArea (Gamer)"].Red
local redBlinks = 5
local Door = script.Parent
local Baba = game.Workspace["DoorArea (Gamer)"].Baba
local function open()
Baba:Play()
for i = 1, GreenBlinks do
Door.Transparency = i/5
Door.CanCollide = false
GreenBtn.Material = Enum.Material.Neon
wait(0.3)
GreenBtn.Material = Enum.Material.SmoothPlastic
wait(0.3)
if i == GreenBlinks then
print("Statemenmt Ended")
break
end
end
end
local function close()
Baba:Destroy()
for i = 1, redBlinks do
Door.Transparency = 0
Door.CanCollide = true
RedBtn.Material = Enum.Material.Neon
wait(0.3)
RedBtn.Material = Enum.Material.SmoothPlastic
wait(0.3)
if i == redBlinks then
print("Statemenmt Ended")
break
end
end
end
Green.MouseClick:Connect(open)
Red.MouseClick:Connect(close)
Script which generates random vectors of shape sizes for square.
Some of the features this script includes are:
Square turns into different size every second.
Local Script includes a while loop to change the part size every 0.5 seconds.
Vectors are used for cross & dot products.