Did it work? Pls reply, im on my mobile rn so i cant check myself.
should i add another or the same
Juz replace the previous 1 with wt i now posted.
because still the red thing coming out
Try writing workspace instead of Workspace
game.Workspace.Fuel.Hitbox.Transparency = 0 the error gone when i deleted a one
Ah yes my bad u need only one =
Now it prob must work, didnt it?
when i click in the object it make me this
You can’t use FireServer
in a Script. Only LocalScript
Heres the whole code
Script(not local script my mistake) in ur Hitbox part
local pick = script.Parent.ClickDetector
pick.MouseClick:Connect(function()
game.Workspace.Fuel.Hitbox.Transparency = 0
end)
No need of the remoteevent or script in ServerScriptService
Ye juz realized my mistake prty dum one tbh.
Hitbox is not a valid member of Model “Workspace.Fuel”
this new error came up
when i deleted the remote and the script in serverscrpt
the leaderstate scirpt is still
but i added a remote because player click it give oill
HitBox is the correct one spellung mistake
for i, v in pairs(script.Parent.Parent:GetChildren()) do
v.Transparency = false
end
Place this inside the function