Remote event fires but server doesnt receive

So I made this script which is supposed to change the transparency of the players boots model which is inside the player character. but it doesn’t show to other players so I made a LocalScript In starterCharacterScripts:

local RemoteEvent = game.ReplicatedStorage.remotes.Boots
local userInputService = game:GetService(“UserInputService”)

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
		if input.UserInputType == Enum.UserInputType.Keyboard then
			if input.KeyCode == Enum.KeyCode.B then
			RemoteEvent:FireClient()
			print("Fired")
			end
		end
	end
)

then I made a Script in ServerScriptService:

RemoteEvent = game.ReplicatedStorage.remotes.Boots
local LBoot = script.Parent:WaitForChild("LeftBoot")
local RBoot = script.Parent:WaitForChild("RightBoot")

local LTransparency = LBoot.Neon.Transparency
local RTransparency = RBoot.Neon.Transparency

RemoteEvent.OnServerEvent:Connect(function(player) 
	local Character = player.Character
	
	print(player.Name)
	if Character.LBoot.Neon.Transparency == 0 and Character.RBoot.Neon.Transparency == 0 then
		Character.LBoot.Neon.Transparency = 1 
		Character.RBoot.Neon.Transparency = 1
		player.Backpack.Dash.Disabled = true
		Character.LBoot.Bottom.Trail.Enabled = false
		Character.RBoot.Bottom.Trail.Enabled = false
		script.BeepOff:Play()
		print("BootOff")
	elseif Character.LBoot.Neon.Transparency == 1 and Character.LBoot.Neon.Transparency == 1 then
		Character.LBoot.Neon.Transparency = 0
		Character.RBoot.Neon.Transparency = 0
		player.Backpack.Dash.Disabled = false
		Character.LBoot.Bottom.Trail.Enabled = true
		Character.RBoot.Bottom.Trail.Enabled = true
		script.BeepOn:Play()
		print("Boot On")
	end					
end)

But the Localscript fires but the changes don’t happen even for the client.

1 Like

in your client, you do

RemoteEvent:FireClient()

but what you need to do is

RemoteEvent:FireServer()
1 Like

I changed to what you said and it prints the fired statement but Doesn’t even change the transparency or reach the first print statement of The serverscript

1 Like

any errors in the output or just blank?

1 Like

What could I do? Since theres no errors?

1 Like

did it print the players name on the server?

1 Like

Nope it printed nothing for the server

1 Like

switch it back to fire server.

1 Like

It already is Fire server for the localscript

1 Like

did you make sure to spell it right? FireServer

also did you press b to make sure your even testing it?

1 Like

Yup its spelled right. And I tested the B thing:

local RemoteEvent = game.ReplicatedStorage.remotes.Boots
local userInputService = game:GetService("UserInputService")

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
		if input.UserInputType == Enum.UserInputType.Keyboard then
			if input.KeyCode == Enum.KeyCode.B then
			RemoteEvent:FireServer()
			print("Fired")
			end
		end
	end
)
1 Like

did it print fired? it could be your client code.

1 Like

It always fires when I press B. It prints everytimne

1 Like

Is it because it doesn’t detect boots? The boots are welded to the player. Idk

1 Like

do print(RemoteEvent) before you fire it so you can see if it exists on the client.

1 Like

It prints the name of the remote event. Which is Boots

1 Like

on the server script do

local RemoteEvent = game.ReplicatedStorage.remotes:WaitForChild("Boots")
1 Like

It still doesnt change the transparency

1 Like

Is it because my server script Is in serverscripservice and local script in startercharcterscripts?

1 Like

Yes. Move your local script to StarterPlayerScripts

1 Like