如何在 boblox studio 中突出显示播放器和速度线圈

问题描述 投票:0回答:1

我和某人正在 boblox studio 中开发一款游戏,我们想知道如何在装备时突出显示播放器和速度线圈。有人可以帮我吗?

我们在网上查找代码但找不到任何东西

lua roblox
1个回答
0
投票

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)

© www.soinside.com 2019 - 2024. All rights reserved.