neviquatro
(neviquatro)
#1
Code:
local arg1, arg2 = Events.HandleRockThrow:InvokeServer(direction)
arg1:Destroy()
Server script:
local Clone = game.ReplicatedStorage.Pebble:Clone()
Clone.Parent = workspace
Clone:PivotTo(plr.Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, 0))
local forceMultipliter = 100 * Clone:GetMass()
return Clone, forceMultipliter
Error: Players.neviquatro.PlayerScripts.Core:20: attempt to index nil with 'Destroy' - Client - Core:20
Thats odd try putting in a task.wait() to see if ts due to some sort of delay also double check with prints both client and server.
Seems to work ok otherwise, how does your function look like? Same issues as below post?
sinanxd2
(Fisher)
#3
can you try :RequestStreamAroundAsync() and then :WaitForChild(), in your case first one shouldn’t be necessary tho
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.