so I'm making a script where if you have a badge it makes a certain brick's can collide property set to false only for the client, here's my script that won't work 100%
i have a number value and a script that changes the number depending on what badge you have, the local script reads it
regular script that's in the brick:
local repStorage = game:GetService("ReplicatedStorage")
local remote = repStorage:WaitForChild("Remote")
remote.OnClientEvent:Connect(function(player)
script.Parent.CanCollide = false
end)
here's the local script in the playergui and its a child of the numbervalue:
local repStorage = game:GetService("ReplicatedStorage")
local remote = repStorage:WaitForChild("Remote")
if script.Parent.Value == 1 then
remote:FireClient()
end
I don't think im using the remote right can someone tell me how i can fix it?

4 comments
Try remote:FireServer()
no luck :(
Are there any errors?
no, none in the logs. thats why it's confusing