Cilent not working with remote events

Hello! I am making a RPG game but with one problem, i would like the invisible part at the door to have the collisions off but due to it being Mulitplayer, i must go with localscripts and events. Any help?

Local Script

local remote = script.RemoteEvent
remote.OnClientEvent:Connect(function(plr)
	game.Workspace.Baseplate.Part.CanCollide = false
	game.Workspace.Baseplate.Part.Transparency = 0
end)

The part where the script uses the remote

	tween:Play()
	tween2:Play()
	tween3:Play()
	Tween0:Play()
	plr.PlayerGui.Quests.Frame:TweenPosition(UDim2.new(-0.012, 0,0.302, 0),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 1, true)
	wait (1)
	local b = game:GetService("BadgeService")
	b:AwardBadge(plr.userId, 2151764602)
	event:FireClient(plr)

Screenshots aswell
image

1 Like

looking from the screenshot the localscript is probably parented to replicatedstorage in which localscripts dont run, place the localscript in starterplayer->startercharacterscripts
(keep the remoteevent where it is)

1 Like

its placed in a humanoid for a NPC, lol.

1 Like

yeah localscripts dont run in workspace too, place it in startercharacterscripts

Worked! Tysm. I just put it in startergui!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.