No output messages ):, but here are the issues:
The message time is off, and the doors don't lock/unlock.
Player = script.Parent.Parent.Parent
Debounce = false
Up = script.Parent.Holder.Up
Down = script.Parent.Holder.Down
Shout = script.Parent.Holder.Shout
Time_label = script.Parent.Holder.Timelabel
Time = script.Parent.Holder.Time
Line = script.Parent.Holder.Line
Lock_button = script.Parent.Holder.LockButton
Door_set = game.Workspace.StageDoors
Locked = false
function timeup()
if Time.Value < 10 then
Time.Value = Time.Value + 1
Time_label.Text = Time.Value.." Second(s)"
end
end
function timedown()
if Time.Value > 1 then
Time.Value = Time.Value - 1
Time_label.Text = Time.Value.." Second(s)"
end
end
function shoutf()
if Debounce == false then
Debounce = true
Message = Instance.new("Message", game.Workspace)
Jic = script.Parent.Holder.Safelock:Clone()
Jic.Parent = Message
Jic.Disabled = false
Jic.Time.Value = Time.Value + .5
Message.Name = "StageMessage"
Message.Text = Player.Name..": "..Line.Text
Wait(Time.Value)
Message:Destroy()
Debounce = false
elseif Debounce == true then
print("Please Wait...")
end
end
function lock()
for i, v in pairs(Door_set:GetChildren()) do
if not Locked then
v.CanCollide = true
Lock_button.Text = "Unlock Doors"
Locked = true
elseif Locked then
v.CanCollide = false
Lock_button.Text = "Lock Doors"
Locked = false
end
end
end
Up.MouseButton1Click:connect(timeup)
Down.MouseButton1Click:connect(timedown)
Shout.MouseButton1Click:connect(shoutf)
Lock_button.MouseButton1Click:connect(lock) |