It seems that my events arent firing because I am not seeing print("Event Fired") in the output. I don't understand Events, but I want a gui to change for every player.
-----------------------Events---------------------------------------
local RecruitChosen = Instance.new("RemoteEvent")
local StrikerChosen = Instance.new("RemoteEvent")
local DecoyChosen = Instance.new("RemoteEvent")
local CaliaChosen = Instance.new("RemoteEvent")
local BlasterChosen = Instance.new("RemoteEvent")
RecruitChosen.Parent = game.ReplicatedStorage
StrikerChosen.Parent = game.ReplicatedStorage
DecoyChosen.Parent = game.ReplicatedStorage
CaliaChosen.Parent = game.ReplicatedStorage
BlasterChosen.Parent = game.ReplicatedStorage
RecruitChosen.Name = "RecruitWasChosen"
StrikerChosen.Name = "StrikerWasChosen"
DecoyChosen.Name = "DecoyWasChosen"
CaliaChosen.Name = "CaliaWasChosen"
BlasterChosen.Name = "BlasterWasChosen"
-----------------------Player Models---------------------------------------
local RecruitModel = game.ServerStorage.Recruit
local StrikerModel = game.ServerStorage.Striker
local DecoyModel = game.ServerStorage.Decoy
local CaliaModel = game.ServerStorage.Calia
local BlasterModel = game.ServerStorage.Blaster
local Player = game.Players.LocalPlayer
function Recruit()
print("Clicked")
if script.Parent.Recruit.PlayerSelected.Text == "None" then
RecruitChosen:FireServer()
local ClonedModel = RecruitModel:Clone()
ClonedModel.Parent = workspace
Player.Character = ClonedModel
workspace.CurrentCamera:Destroy()
wait()
workspace.CurrentCamera.CameraType = "Custom"
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character[("Humanoid")]
end
end
function Striker()
print("Clicked")
if script.Parent.Striker.PlayerSelected.Text == "None" then
StrikerChosen:FireServer()
local ClonedModel = StrikerModel:Clone()
ClonedModel.Parent = workspace
Player.Character = ClonedModel
workspace.CurrentCamera:Destroy()
wait()
workspace.CurrentCamera.CameraType = "Custom"
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character[("Humanoid")]
end
end
function Decoy()
print("Clicked")
if script.Parent.Decoy.PlayerSelected.Text == "None" then
DecoyChosen:FireServer()
local ClonedModel = DecoyModel:Clone()
ClonedModel.Parent = workspace
Player.Character = ClonedModel
workspace.CurrentCamera:Destroy()
wait()
workspace.CurrentCamera.CameraType = "Custom"
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character[("Humanoid")]
end
end
function Calia()
print("Clicked")
if script.Parent.Calia.PlayerSelected.Text == "None" then
CaliaChosen:FireServer()
local ClonedModel = CaliaModel:Clone()
ClonedModel.Parent = workspace
Player.Character = ClonedModel
workspace.CurrentCamera:Destroy()
wait()
workspace.CurrentCamera.CameraType = "Custom"
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character[("Humanoid")]
end
end
function Blaster()
print("Clicked")
if script.Parent.Blaster.PlayerSelected.Text == "None" then
BlasterChosen:FireServer()
local ClonedModel = BlasterModel:Clone()
ClonedModel.Parent = workspace
Player.Character = ClonedModel
workspace.CurrentCamera:Destroy()
wait()
workspace.CurrentCamera.CameraType = "Custom"
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character[("Humanoid")]
end
end
-----------------------Fired Events---------------------------------------
function PlayerRecruit()
print("Event Fired")
script.Parent.Recruit.PlayerSelected.Text = "Already Taken"
end
function PlayerStriker()
print("Event Fired")
script.Parent.Striker.PlayerSelected.Text = "Already Taken"
end
function PlayerDecoy()
print("Event Fired")
script.Parent.Decoy.PlayerSelected.Text = "Already Taken"
end
function PlayerCalia()
print("Event Fired")
script.Parent.Calia.PlayerSelected.Text = "Already Taken"
end
function PlayerBlaster()
print("Event Fired")
script.Parent.Blaster.PlayerSelected.Text = "Already Taken"
end
-----------------------Connect Functions---------------------------------------
game.ReplicatedStorage.RecruitWasChosen.OnClientEvent:connect(PlayerRecruit)
game.ReplicatedStorage.StrikerWasChosen.OnClientEvent:connect(PlayerStriker)
game.ReplicatedStorage.DecoyWasChosen.OnClientEvent:connect(PlayerDecoy)
game.ReplicatedStorage.CaliaWasChosen.OnClientEvent:connect(PlayerCalia)
game.ReplicatedStorage.BlasterWasChosen.OnClientEvent:connect(PlayerBlaster)
script.Parent.Recruit.MouseButton1Click:connect(Recruit)
script.Parent.Striker.MouseButton1Click:connect(Striker)
script.Parent.Decoy.MouseButton1Click:connect(Decoy)
script.Parent.Calia.MouseButton1Click:connect(Calia)
script.Parent.Blaster.MouseButton1Click:connect(Blaster)

3 comments
Include the server script
...What....
lol you need two seperate scripts to use remotes. One is a Local Script (client) and the other one is a regular script (server script). Watch tutorials on YouTube so you are familiar. Once you get the concept, you will understand waaay easier.