i was using Mouse.Target
and while ingame sometimes Mouse.Target
is nil
Did u try to check that the target isn’t nil
1 Like
yeah
(30 characters eeeeeeeeee)
try Mouse.Hit.p
it only fires when a player clicks something
but i want to get the block, not the position
Ok use Mouse.Target then
when you fired the event the Server did you use this peace of code
RemoveBlock:FireServer(Mouse.Target.Parent)
You cant reference an object from the mouse`s target u have to use.Parent
after some rewriting, i think i fixed the issue and im happy now
1 Like