Roblox Studio 脚本教程 如何制作间歇时间/游戏倒计时-基本脚本教程

2068
0
2020-04-08 11:33:47
正在缓冲...
32
6
51
6
Youtube原地址:https://www.youtube.com/watch?v=DFQRXdMzEGg&t Roblox Studio 脚本教程 如何制作间歇/倒计时GUI-基本脚本教程 SCRIPTS! Script in workspace: local seconds = game.Workspace.Time local ingame = game.Workspace.InGame.Value local Game = game.Workspace.Game.Position while true do wait(1) seconds.Value = seconds.Value - 1 if seconds.Value == 0 and ingame == 0 then ingame = 1 seconds.Value = 20 local teleport = game.Players:GetChildren() for i = 1, #teleport do teleport[i].Character:MoveTo(Vector3.new(Game.X, Game.Y, Game.Z)) end end if seconds.Value == 0 and ingame == 1 then ingame = 0 seconds.Value = 15 local teleport = game.Players:GetChildren() for i = 1, #teleport do teleport[i]:LoadCharacter() end end end ---------------------------------------------------------------------------------------------------------- LocalScript in TextLabel: while true do script.Parent.Text = game.Workspace.Time.Value wait(0.01) end ---------------------------------------------------------------------------------------------------------- 如果这不起作用... -检查脚本。 查看是否相同,并确保未禁用脚本 -确保将他们传送到的部分命名为“游戏”,并确保将其固定 -检查“游戏中”值是否命名为“ InGame”并将其设置为0,并且类名称为“ IntValue” -检查“时间”值是否命名为“时间”并且类名称是否为“ IntValue”
Roblox游戏背景音乐搬运工,偶尔玩玩其他游戏.
客服
顶部
赛事库 课堂 2021拜年纪