我和某人正在 boblox studio 中开发一款游戏,我们想知道如何在装备时突出显示播放器和速度线圈。有人可以帮我吗?
我们在网上查找代码但找不到任何东西
local tool,v=script.Parent,Instance.new("SelectionBox",game:service"JointsService")
local char=tool.Parent;char=char:IsA"Model"and char or char.Parent.Character
v.Visible=false
v.Adornee=char
tool.Equipped:Connect(function()
v.Visible=true
end)
tool.Unequipped:Connect(function()
v.Visible=false
end)