SHOW:
|
|
- or go back to the newest paste.
1 | - | me = game.Players.LocalPlayer |
1 | + | me = owner |
2 | game.Players[me].Name = "John Doe" | |
3 | game.Players[me].CharacterAppearance = "http://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=2" | |
4 | game.Workspace[me].Humanoid.Health = 0 | |
5 | ||
6 | ||
7 | -- Credit to dominusTrex (edited by dawg@v3rm) | |
8 | local cg = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui) | |
9 | cg.Name = 'CHATGUI' | |
10 | game.Players.BattleFeildPi.Name = 'John Doe' | |
11 | game.Players.BattleFeildPi.userId = 2 | |
12 | [color=#333333][size=x-large]game.Players.BattleFeildPi:SetSuperSafeChat(false)[/size][/color] | |
13 | ||
14 | local cb = Instance.new('TextBox', cg) | |
15 | cb.Size=UDim2.new(1, 0, 0, 20) | |
16 | cb.TextXAlignment = 'Left' | |
17 | cb.BackgroundColor3 = Color3.new(25/255, 25/255, 25/255) | |
18 | cb.TextColor3 = Color3.new(255, 255, 255) | |
19 | cb.Font = 'SourceSansLight' | |
20 | cb.FontSize = 'Size14' | |
21 | cb.BorderColor3 = Color3.new(255/255, 255/255, 255/255) | |
22 | cb.Position=UDim2.new(0,0,1,-20) | |
23 | cb.Text='Click here to chat.' | |
24 | cb.FocusLost:connect(function(e) | |
25 | if e then | |
26 | game.Players:Chat(cb.Text) | |
27 | cb.Text='Click here or press "R" to chat as John Doe.' | |
28 | end | |
29 | end) | |
30 | game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k) | |
31 | if k == 'r' then | |
32 | cb:CaptureFocus() | |
33 | end | |
34 | end) | |
35 | for i,v in pairs(game.Players:children'') do | |
36 | v.Chatted:connect(function(m) | |
37 | print(v.Name..': '..m) | |
38 | end) | |
39 | end |