You can write your topic however you want, but you need to answer these questions:
Hello, I’m trying to make the invisible parts appear when I touch a button through a remote event. But I can’t seem to make it work.
I want it to be only visible to the person that touched the button.
The invisible parts are selected, and the button is right beside it
I’ve tried so many different ways to do it. I tried to look up some tutorials, but I couldn’t find any
These are my scripts:
-- Server Side Script (Normal Script)
local rs = game:GetService("ReplicatedStorage")
local buttonEvent = rs:WaitForChild("buttonFired")
local button = workspace.Buttons.ButtoNTest
local Players = game:GetService("Players")
button.Touched:Connect(function(hit)
local something = hit.Parent
local player = Players:GetPlayerFromCharacter(something)
buttonEvent:FireClient(player)
-- Client Script(Local Script)
local RS = game:GetService("ReplicatedStorage")
local buttonEvent = RS:WaitForChild("buttonFired")
local IP = workspace.Invisible:GetChildren() -- Invisible Parts
local function touchFunction()
IP.Transparency = 0 -- Trying to make the invisible parts visible and collidable
IP.CanCollide = true
end
buttonEvent.OnClientEvent:Connect(touchFunction)
end)