Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My remote event has no errors but wont work?

Sorry for re posting the last time I on mistake clicked the solved error button when it the comment didn't fix it. Local Script

local UserInputService = game:GetService("UserInputService")
local debounce = false
UserInputService.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.E then
		if debounce == false then
		game.Players.LocalPlayer.PlayerGui.e.Frame.ePower.Visible = false
		script.EventPepporni:FireServer()
		local debounce = true
		wait(3)
			local debounce = false
			game.Players.LocalPlayer.PlayerGui.e.Frame.ePower.Visible = true
		end
		
	end
end)

Normal Script

game.StarterPlayer.StarterCharacterScripts.Pepporni.EventPepporni.OnServerEvent:Connect(function()
	print("it worked!!")
	local plr = script.Parent.Parent.Name
	local plrpos = game.Workspace:FindFirstChild(plr.name)
	local part = Instance.new("Part")
	part.parent = game.Workspace
end)

1 comment

0

please accept my answer

1 answer

✓ Accepted answer

This is because instead of the event being in the starter character scripts it should be in the replicated storage. Also, it wouldn't be in starter character scripts folder, it would be in the players character.

5 comments

0

so the remote event and the script should be moved to replicated storage? thanks for responding

0

no just the remote event, then change the script to locate it in replicated storage.

0

Yay it works!!!

0

Please accept my answer!

0

I answered that in your other question :(

This discussion is preserved as it was. New answers, comments, and votes are closed.