lua roblox gui脚本格式
我一直在尝试遵循有关滑动门的YouTube教程。
https:///www.youtube.com/www.youtube.com/watch? Terra
我遵循了所有教程,但门仍然没有打开。
这是脚本:
animator = require(script.Parent.MainDoor.Animator)
script.Parent.Button.ClickDetector.MouseClick:Connect(function()
script.Parent.Button.CLickDetector.MaxActivationDistance = 0
wait(1)
script.Parent.MainDoor.Open:Play()
wait(0.1)
animator.DoorOpen:Play()
end)
有人可以帮我吗?谢谢。
I've been trying to follow this youtube tutorial about a Sliding Door.
https://www.youtube.com/watch?v=8ZpD8t8kQC8&ab_channel=Terra
I followed all of the tutorial but the Door still doesn't open.
Here is the script:
animator = require(script.Parent.MainDoor.Animator)
script.Parent.Button.ClickDetector.MouseClick:Connect(function()
script.Parent.Button.CLickDetector.MaxActivationDistance = 0
wait(1)
script.Parent.MainDoor.Open:Play()
wait(0.1)
animator.DoorOpen:Play()
end)
Can someone please help me. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
输出中有任何错误吗?去查看>输出,为了启用窗口,
我相信第4行的“ ClickDetector”可能会出现拼写错误。 L在第3行上不是资本,因此可能会给您带来错误,因为名称对病例敏感。
希望它能有所帮助!
回应:
确保主门在滑板型号下方,而不是外部。
将其粘贴到命令栏(视图>命令栏)中,以找出父的含义:
结果将显示在输出中。
Are there any errors in the output? Go to View > Output, to enable the window
I believe there might be a spelling error on line 4 'CLickDetector'. The l was not capital on line 3 so that might be throwing you an error since names are case-sensitive.
Hope it helped!
In response to:
Make sure that the main door is underneath the SlidingDoor model, and not outside it.
Paste this in the command bar(View > Command Bar), to find out what the parent is:
The result will be shown in the output.