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

Help with this script?

I run it as a LocalScript on ScriptBuilder games to spectate and still chat after I've been kicked, but sadly, it doesn't work lol. Anyone know why though?

namey = "Trixynn"

game.Players.PlayerRemoving:connect(function(p)
	if p == game.Players.LocalPlayer then
		game.Workspace.Camera:Remove()
		c = Instance.new("Camera")
		c.Parent = game.Workspace
		c.CameraSubject = game.Workspace
		c.CameraType = "Fixed"
		 game.Players.LocalPlayer.Chatted:connect(function(m)
        	h = Instance.new("Hint")
			h.Parent = game.Workspace
			h.Text = namey .. ": " .. m
			wait(3)
			h:Remove()
    	end)
	end
end)

3 comments

0

For my own good, what is ScriptBuilder? I feel dumb that I don't know but really, what is it?

1

If you get kicked, the game kills your connection to the server.

0

eLunate, this is a different type of kick. One that actually keeps you fully connected. in a localscript on a server do game.Players.LocalPlayer:Destroy()

1 answer

✓ Accepted answer

Okay, there is in fact a way to kick a user using a LocalScript and keeping all your connections to the server. That function is game.Players.LocalPlayer:Destroy() I still think OxCool1 should block this. But hes a nub.

For anyone who thinks Im a liar, go into studio, make a LocalScript and insert this code. (Copy and paste) http://pastebin.com/raw/peBwVd4v Then make sure you check the Players service after you run the code. Your now called a "Nil". Which a type of kick without using :Kick() to be out of the server, but still fully connected. This works for Studio and a Game-Client.

If you don't know who I am on SB, I am the legend that goes by the name of "Jillmiles1" or "12GaugeNick". The creator of Actinium, MLG Probe, Miles orb 1-5, and more. (Jokes btw)

Links: http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent SB: https://www.roblox.com/games/20279777/Voidacitys-Script-Builder-Patch-update

Anyways, I'm going to assume you go to OxCool1's SB? (Void's) I will just go ahead and give you a chat API function...

local OxChat = function(Title, Message) -- This will be in your Server-Script
	for _,plr in next,game.Players:GetPlayers() do
		local val=AddInstance("StringValue",{
			Name="SB_Chat"; 
			Parent=plr; 
			Value=tostring(Title).."/"..tostring(Message)
		})
		game.Debris:AddItem(val,0)
	end
end

Now, just as Actinium 7 and most of my orbs have, a nil chat. You will need a RemoteEvent.

Okay, this is your ServerScript.

-- Assume OxChat is already in the script.

local RemoteEvent = Instance.new("RemoteEvent", game.ReplicatedStorage)
RemoteEvent.Name="Nil_Chat_API"
RemoteEvent.OnServerEvent:connect(function(Player, Message)
	if not game.Players:FindFirstChild( tostring(Player) ) then
		OxChat("NIL_"..Player.Name, Message)
	end
end)

Now, for your local script. If you have a breakout or bypass you will need to use it. Because this local should go out to everyone.

local RemoteEvent = game.ReplicatedStorage:WaitForChild("Nil_Chat_API")
game.Players.LocalPlayer.Chatted:connect(function(Message)
	RemoteEvent:FireServer(Message)
end)

1 comment

0

Thank you!

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