-2
我真的在ROBLOX制作脚本,针对我的UFO,其中每当UFO从高空经过它播放音频。我做了如下脚本需要帮助的ROBLOX脚本(LUA)
while true do
if script.Parent.Parent.Velocity.Magnitude>10 then
if local h = hit.Parent:FindFirstChild("Humanoid")
then script.parent:play()
wait(5)
else
wait()
end
wait()
end
任何更正将是一个真正的帮助!
谢谢!
你想要什么样的建议? – Vyacheslav
我不认为你应该使用'while'循环。我以前从未为Roblox制作过插件,但是'while'循环会阻止。从[this](http://wiki.roblox.com/index.php?title=Tutorial:Plugins)教程看,它看起来像你想看看钩子 – DavisDude
他从来没有提到任何关于插件@DavisDude – warspyking