Im trying to do fireclient but its keep saying it dont exists getting me really mad when it does exists and its there in the area im telling it to be fired from.
Screenshots.
Module Code
Code
local module = {}
function module.Commands()
local player = script.Parent.LocalPlayer.Value
local plr = game.Players:WaitForChild(player)
local gui = script.ScreenGui:Clone()
gui.Parent = plr.PlayerGui
wait(2)
local event = game.ReplicatedStorage.CmdsEvent
event:FireClient(player)
end
return module
Code from the Notifcations LocalScript
Code
--Simple Notifications for commands ran and to replace the guis.
--New as of 12/15/2019
--written by im_sams
local player = game.Players.LocalPlayer
local noclip = Instance.new("RemoteEvent")
noclip.Name = "NoclipEvent"
noclip.Parent = game.ReplicatedStorage
noclip.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Command Ran";
Text = "Hello "..player.Name..", Noclip now enabled, Press 'E' to enable and disenable noclip";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 6;
})
end)
local musicstart = Instance.new("RemoteEvent")
musicstart.Name = "MusicEvent2"
musicstart.Parent = game.ReplicatedStorage
musicstart.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Command Ran";
Text = "Hello "..player.Name..", Music succesfully started playing, Say :musicstop to stop playing";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 6;
})
end)
local musicend = Instance.new("RemoteEvent")
musicend.Name = "MusicEvent"
musicend.Parent = game.ReplicatedStorage
musicend.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Command Ran";
Text = "Hello "..player.Name..", Music succesfully stop playing";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 6;
})
end)
local kick = Instance.new("RemoteEvent")
kick.Name = "KickEvent"
kick.Parent = game.ReplicatedStorage
kick.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Command Ran";
Text = "Hello "..player.Name..", succesfully kicked the player";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 6;
})
end)
local fly = Instance.new("RemoteEvent")
fly.Name = "FlyEvent"
fly.Parent = game.ReplicatedStorage
fly.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Command Ran";
Text = "Hello "..player.Name..", succesfully toggled flying ability, Press 'F' to enable and disenable your flying ability";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 6;
})
end)
CmdsEvent = Instance.new("RemoteEvent")
CmdsEvent.Name = "CmdsEvent"
CmdsEvent.Parent = game.ReplicatedStorage
CmdsEvent.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Commands List";
Text = "Are commands are: :fly,:musicstop,:noclip,:kick and :fly. More are coming soon";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 9;
})
end)
youadmin = Instance.new("RemoteEvent")
youadmin.Name = "AdminEvent"
youadmin.Parent = game.ReplicatedStorage
youadmin.OnClientEvent:connect(function(plr)
game.StarterGui:SetCore("SendNotification", {
Title = "Admin Commands By Rampage Studios";
Text = "Hello "..player.Name..", you are and administrator, type :cmds to view your abilitys.";
Icon = "http://www.roblox.com/asset/?id=2129408130";
Duration = 15;
})
end)