私は、このツールは、「PlaceEvent」のために待って作っていますが、私はこのエラーを取得しておいてください。ここではROBLOX.Lua無限の可能性のある修正?
21:58:52.024 - Infinite yield possible on 'ReplicatedStorage:WaitForChild("PlaceEvent")'
21:58:52.026 - Stack Begin
21:58:52.026 - Script 'Players.rohanskywalker.Backpack.Grass.Main', Line 7
21:58:52.026 - Stack End
はスクリプトです:
-- Local Script
local tool = script.Parent
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local clickEvent = tool.ClickEvent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PlaceEvent = ReplicatedStorage:WaitForChild("PlaceEvent")
local function onActivate()
local clickLocation = mouse.hit
clickEvent:FireServer(clickLocation)
PlaceEvent:FireServer()
end
tool.Activated:connect(onActivate)