Local script not showing invisble part?

Video:

https://gyazo.com/18938c8b393f668bd6fdc5afa37d2cba

Server:


	game.Players.PlayerAdded:Connect(function(plr)
		script.Parent.ProximityPrompt.Triggered:Connect(function()
		game.ReplicatedStorage.rem.bo1:FireClient(plr)
		end)
	end)



Locat script:

local Bridge = workspace.Barriers.MainBarrier
local Bridge2 = workspace.Barriers.bridge2Bridge
local Proximity = workspace.Buttons.Button1.ProximityPrompt
local rem = game.ReplicatedStorage.rem.bo1

rem.OnClientEvent:Connect(function(player, plr)
	print("test--1")
	Bridge2.CanCollide = true
	Bridge2.Transparency = 0
	
	Bridge.CanCollide = false
end)

Switch it. Fire the server in the local script. And do whatever you need to on the server.

But isn’t it gonna show for everyone? Cause I want it only to show to the player who triggered it.

Oh. Then just use a local script instead of a remote event

1 Like

Okkkkkkkkkkkkkkkkkk! Thanks!! Have a good day

Bro still not working…
Other video
https://gyazo.com/11b9dbb18e59af1d641040779e7832d2

image

So what exactlly are your overall plans here because I don’t understand.

It dosent work I put the Gyazo link so you can see the video

To make a block appear (by changing its transparency)

Is the bridge a part or a model?

What type of object is the Bridge2? let us see the explorer

imglol

bridge 2 is a wedge named (bridge2bridge)

and main barrier is just a barrier blocking the entrance

OnClientEvent doesn’t return a player as the first parameter because you’re already in a local script.

its not running on a remoteevent

Script:

-- Create a new script and parent it inside the ProximityPrompt

local Proximity = script.Parent

Proximity.Triggered:Connect(function(playerWhoTriggered) --Theres a parameter built in if someone who triggered the proximity prompt (As well as for ClickDetectors)
    game.ReplicatedStorage.rem.bo1:FireClient(playerWhoTriggered)
end)

LocalScript:

local Bridge = workspace.Barriers.MainBarrier
local Bridge2 = workspace.Barriers.bridge2Bridge
local rem = game.ReplicatedStorage.rem.bo1

rem.OnClientEvent:Connect(function()
    print("test--1")
	Bridge2.CanCollide = true
	Bridge2.Transparency = 0
	
	Bridge.CanCollide = false
end)
1 Like

Never mind! ITS WORKING!!!

1 Like

Nvermind again. I thought it works :frowning: not working