I have a script, and a local script, and FE enabled. I use the local script to fire two RemoteEvents, and the script detects them and runs them on the server. The first RemoteEvent Fires to the Server correctly, and the script responds correctly, but when the second RemoteEvent is supposed to be fired(Pressing "C"), it doesn't, it also does not print("Stand"). (chr.Parent == game.Lighting, script puts the character into lighting, so that is not the problem)

local chr = script.Parent
local player = game.Players.LocalPlayer
local Event = game.ReplicatedStorage.Ragdoll
local EventTwo = game.ReplicatedStorage.Stand
local UIS = game:GetService("UserInputService")
local cam = game.Workspace.CurrentCamera
UIS.InputBegan:connect(function(key)
    if key.KeyCode == Enum.KeyCode.Q and chr.Parent == game.Workspace then
        Event:FireServer(cam)
		print("Fall")		
   	elseif key.KeyCode == Enum.KeyCode.C and chr.Parent == game.Lighting then
        EventTwo:FireServer(cam)
		print("Stand")
    end

end)


Any help is appreciated! Thank you!(Even though not everyone that reads this will help and I haven't seen the answer(s), lol)

-Jo_Bot

3 comments

0

try printing in the server script (Event.OnServerEvent:connect(function(player, cam) print('test') end)

0

Ahh! It is sickings! The dude that said "Cool free ragdoll script1" but okay, lol.

0

Hmm, nothing.