--- local script local remote = game.ReplicatedStorage.Effect1 if game.Players.LocalPlayer.PlayerGui.Waitmove:WaitForChild("Logia") then print("Yah") remote:FireServer() print("Yah1") end -- server local remote = game.ReplicatedStorage.Effect1 remote.OnServerEvent:Connect(function() game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local arm1 = char["Right Arm"] arm1.Touched:Connect(function(hit) if hit then arm1.Transparency = 0.5 end end) end) end) end)
it prints Yah and Yah1 but transparency doesnt change pls help me lol
Your script is not working as you are not running the code until a player joins the game. When a player fires (or invokes) a remote event or remote function, the first argument of the callback is the player.
Example:
local ReplicatedStorage = game:GetService("ReplicatedStorage"); local RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent"); RemoteEvent.OnServerEvent:Connect(function(player) -- "player" is the player who fired the remote print(player.Name, "just invoked a remote event in ReplicatedStorage :OO") end)