Problems with remote events

Greetings, I have noticed this issue while working with remote events:

Lets say I have this local script

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEventTest")

local function tr(uh)
	uh.transparency = 0.7
end

remoteEvent.OnClientEvent:Connect(tr)

and this server side script

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local ProximityPrompt = script.Parent
local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEventTest")
local part = workspace.Part

ProximityPrompt.Triggered:Connect(function(player)
	remoteEvent:FireClient(player, part)
end)

I was expecting that the transparency of the part would change, however nothing happened.
Thanks for answering!

Changes made with localscripts are client side scripts so only the client can see the part with transparency

i think its because transparency is lowercase. Im not sure if this is a typo or not, but im still looking through the rest of the script, so it may not be that.

1 Like

where are the two scripts placed? the location of the scripts might prevent them from running

whops, my bad, should’ve looked been more careful.

Make sure you put Local script on:

  • A Player’s Backpack, such as a child of a Tool
  • A Player’s Player/Character|character model
  • A Player’s PlayerGui
  • A Player’s PlayerScripts.
  • The ReplicatedFirst service

Script on:

  • Workspace
  • ServerScriptService

For more info:
Script: Script | Roblox Creator Documentation
Local script: LocalScript | Roblox Creator Documentation

And for your scripts, I don’t see any error and I’m not sure why it’s not working! I’ll try edit it and tell you when it was working.