表面GUI文本更改不起作用Roblox

发布于 2025-01-19 03:08:29 字数 263 浏览 3 评论 0原文

我目前正在开发一款英国军队游戏,但这似乎不起作用,文本没有改变。我应该更改脚本位置吗?

if wall.CanCollide == true then
    status.Text = Active
end

if wall.CanCollide == false then
    status.Text = Not Active
end

Any thoughs?

我将文本更改为字符串,然后拿走了字符串,做了一个循环,拿走了循环......

Im currently developing a british army game and this doesnt seem to work, the text doesnt change. Should I change the script location?

if wall.CanCollide == true then
    status.Text = Active
end

if wall.CanCollide == false then
    status.Text = Not Active
end

Any thoughs?

I changed the text to string then took away the strings, did a loop, took the loop away...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一人独醉 2025-01-26 03:08:29
local a
wall:GetPropertyChangedSignal"CanCollide":Connect(function()
    if a then
        return
    end
    a = true
    status.Text = (not wall.CanCollide and "Not "or"") .. "Active"
    a = false
end)
local a
wall:GetPropertyChangedSignal"CanCollide":Connect(function()
    if a then
        return
    end
    a = true
    status.Text = (not wall.CanCollide and "Not "or"") .. "Active"
    a = false
end)
是伱的 2025-01-26 03:08:29

好吧,我相信我在这里看到了问题。这次试试这个代码。

if wall.CanCollide == true then
    status.Text = "Active"
else
    status.Text = "Not Active"
end

Alright I believe I see the problem here. Try this code out this time.

if wall.CanCollide == true then
    status.Text = "Active"
else
    status.Text = "Not Active"
end
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文