【发布时间】:2021-12-31 16:49:22
【问题描述】:
该部分应该移动到鼠标的位置,它几乎可以正常工作,但问题是它向我的屏幕移动......
本地脚本:
local moveevent = script:WaitForChild("MoveEvent")
script.Parent.Parent.Equipped:Connect(function(mouse)
mouse.Move:Connect(function()
moveevent:FireServer(mouse.Hit.p)
end)
end)
脚本:
local moveevent = script.Parent:WaitForChild("MoveEvent")
moveevent.OnServerEvent:Connect(function(plr, mousepos)
workspace:WaitForChild("Spawnpart").Position = mousepos
end)
【问题讨论】:
标签: roblox