How to fix this error RemoteEvents is not a valid member of ReplicatedStorage “ReplicatedStorage”

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 = :rofl:

Now it prob must work, didnt it?

werid another error came


https://gyazo.com/7bf3cdd40a6709ad12ff94ec94862e5a
here

when i click in the object it make me this

You can’t use FireServer in a Script. Only LocalScript

1 Like

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

1 Like

Ye juz realized my mistake :expressionless: prty dum one tbh.

2 Likes

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

1 Like


it worked but no erorrs but the problem it need to disappear


if i got it up this need to disapear with it also like making it destroy itself

for i, v in pairs(script.Parent.Parent:GetChildren()) do
		v.Transparency = false
	end

Place this inside the function