Hello, I’m back working on another thing for fun which is scripting related its a field im not doing too hot in but heres what i made (Everything was made via me with the help of a lot of devpost on the fourm and a few videos)
Display (Scripts/In-game)
(My bad for the quality)
Scripts (local and normal scripts)
Open scripts (Local and Normal)
Open script (Local script)
local frame1 = script.Parent.Frame
local terminal1 = script.Parent.Terminal
local terminalworkspace = workspace["terminal V.0.1"]
local prompta = game.Workspace["terminal V.0.1"].Hitbox.E
local Top_text = [[Safe Lock Mechanism Status: Locked]]
local Gui_TText = script.Parent.Terminal.Top
local Bottom_text = [[> Accessing Safe Functions...]]
local Gui_BText = script.Parent.Terminal.Bottom
local Index = 1
local Index1 = 1
prompta.Triggered:Connect(function(input)
frame1.Visible = true
terminal1.Visible = true
terminalworkspace.WORDS.Material = Enum.Material.Neon
game.Workspace["terminal V.0.1"].LL.SpotLight.Enabled = true
print("Opened")
while Index <= #Top_text do
Gui_TText.Text = string.sub(Top_text, 1, Index)
Index = Index + 1
wait(delay)
end
wait(0.5)
while Index1 <= #Bottom_text do
Gui_BText.Text = string.sub(Bottom_text, 1, Index1)
Index1 = Index1 + 1
wait(delay)
end
end)
Animation loader (Script)
local ProximityPrompt = script.Parent
local Anim = script:WaitForChild("Idle")
game.Workspace["terminal V.0.1"].Hitbox.E.Triggered:Connect(function(plr)
local hum = plr.Character:WaitForChild("Humanoid")
local loadAnim = hum.Animator:LoadAnimation(Anim)
loadAnim:Play()
end)
Open Lights (Normal script)
local prompta = game.Workspace["terminal V.0.1"].Hitbox.E
prompta.Triggered:Connect(function()
game.workspace["terminal V.0.1"].WORDS.Material = Enum.Material.Neon
game.Workspace["terminal V.0.1"].LL.SpotLight.Enabled = true
end)
Lookat script (Local Script)
local lookpart = workspace["terminal V.0.1"].rotation
local RS = game:GetService("RunService")
local plr = game.Players.LocalPlayer
local prompta = game.Workspace["terminal V.0.1"].Hitbox.E
prompta.Triggered:Connect(function()
RS.RenderStepped:Connect(function()
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.Position, lookpart.Position)
wait(1)
print("test")
game.StarterGui["Terminal_ V.0.1"]["Open scripts"]["Lookat script"].Enabled = false
return
end
end)
end)
Telport script
local speed = 5
local playerMod = require(game:GetService("Players").LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local controls = playerMod:GetControls()
game.Workspace["terminal V.0.1"].Hitbox.E.Triggered:Connect(function()
game.Players.LocalPlayer.Character:MoveTo(game.Workspace["terminal V.0.1"].teleportParta.Position)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame *= CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
controls:Disable()
end)
Close scripts (WIP)
Close (Local script)
local player = game:GetService("Players")
local frame = player.LocalPlayer.PlayerGui["Terminal_ V.0.1"].Frame
local playerMod = require(game:GetService("Players").LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local controls = playerMod:GetControls()
local frame2 = player.LocalPlayer.PlayerGui["Terminal_ V.0.1"].Terminal
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = false
frame2.Visible = false
game.Workspace["terminal V.0.1"].LL.SpotLight.Enabled = false
game.Workspace["terminal V.0.1"].WORDS.Material = Enum.Material.Marble
controls:Enable()
end)
Issues:
- When tested with 2 players the user using the Terminal once they exit the light still glows for the player NOT in the terminal. But its off for the user using the terminal (I think its because I can’t make Close Light a normal script like Open Light in scripts
- Player is still facing the rotation when out of the Terminal
3.The animation is still playing even after closing the terminal [FIXED]
The fix was easy I had to do
for _, v in pairs(hum.Animator:GetPlayingAnimationTracks()) do
v:Stop()
end
The point of this is to show what I’ve done over 4-5 days
I’m not just asking for help but also feedback if you have any. Other than that thanks have a good Night/Day (Do keep in mind im a bit new to scripting because, I’ve never got too invested in scripting lol)