of     1   

NodeSupport
#224379528Tuesday, August 29, 2017 4:08 AM GMT

Once again.. Ran in to a problem w/ my crap fireserver.. I'm not sure why at all this happens, but it does.. This script works in testing, but not in the actual game.. (Filter is enabled) My fireserver script.. game.ReplicatedStorage.AdminEvents.KillEvent.OnServerEvent:connect(function(player) if player.Name == "Reborn_Phyonix" then ########################################################################################################################################### = 0 end end) My function print("Running kill FireServer!") game.ReplicatedStorage.AdminEvents.KillEvent:FireServer()
PhantomVisual
#224380028Tuesday, August 29, 2017 4:29 AM GMT

Check for errors and make sure you are not using Objects are an argument when Firing an event.
NodeSupport
#224387552Tuesday, August 29, 2017 12:38 PM GMT

How else would I kill a user then..? game.ReplicatedStorage.AdminEvents.KillEvent.OnServerEvent:connect(function(player) if player.Name == "Reborn_Phyonix" then ########################################################################################################################################### = 0 end end)
Client_Engineer
#224387671Tuesday, August 29, 2017 12:43 PM GMT

FireServer has to be called on a LocalScript rather than a Script.
Client_Engineer
#224387885Tuesday, August 29, 2017 12:51 PM GMT

(please don't censor) --------- --Script: --------- --RemoteFunction Example game.ReplicatedStorage.RemoteFunction.OnServerInvoke = function(Plr, ...) local Args = {...} print(Args[1]) >Yaa return "Nice" end --RemoteEvent Example game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Plr, ...) local Args = {...} print(Args[1]) >Yaa end) -------------- --LocalScript: -------------- --RemoteFunction Example local WaitForResponse = game.ReplicatedStorage.RemoteFunction:InvokeServer("Yaa") print(WaitForResponse) >Nice --RemoteEvent Example game.ReplicatedStorage.RemoteFunction:FireServer("Yaa")
Client_Engineer
#224387924Tuesday, August 29, 2017 12:52 PM GMT

Client_Engineer
#224388007Tuesday, August 29, 2017 12:55 PM GMT

By the client sided RemoteEvent example I accidentally forgot to remove "Function" and replace it with "Event": game.ReplicatedStorage.RemoteFunction:FireServer("Yaa") so it should be game.ReplicatedStorage.RemoteEvent:FireServer("Yaa")
NodeSupport
#224388758Tuesday, August 29, 2017 1:25 PM GMT

The tagged script I had posted above was in a script.. And I did call my event from a localscript..? Local Script game.ReplicatedStorage.AdminEvents.KillEvent:FireServer() Global Script game.ReplicatedStorage.AdminEvents if player.Name == "Reborn_Phyonix" then ########################################################################################################################################### = 0 ( I took some of the script out from above due to it will be tagged)
Client_Engineer
#224389707Tuesday, August 29, 2017 2:02 PM GMT

still tagged
NodeSupport
#224390926Tuesday, August 29, 2017 2:53 PM GMT

Considering I cannot post mine, for a kill script what would you recommend I put to make it function??
ForceCyber
#224399679Tuesday, August 29, 2017 7:37 PM GMT

How to kill a player: Localscript: (example) local event = game.ReplicatedStorage:WaitForCild("Your_Event_Name"); script.Parent.MouseButton1Click:Connect(function(player) event:FireServer(player); end) Script: (example) local admins = { YourName = true; AnotherName = true; } local event = game.ReplicatedStorage:WaitForCild("Your_Event_Name"); event.OnServerEvent:Connect(function(player) -- player is instantly defined if admins[player.Name] then player.Character:FindFirstChild("Head"):Destroy(); end end)

    of     1