Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
|
| 20 Jan 2014 12:33 PM |
script.Parent.MouseButton1Down:connect(function() didit = false plyr = game.Players.LocalPlayer if script.Parent.Parent.EnterHere.Text ~= nil then targets = script.Parent.Parent.EnterHere.Text g = game.Players:GetPlayers() for i = 1, #g do if g[i].Name == targets then Valoo = Instance.new('StringValue', g[i]) Valoo.Name = "GuildInvite" Valoo.Value = plyr("guild"..plyr.Name).Value h = Instance.new('Hint', plyr.PlayerGui) h.Text = ("You successfully invited "..g[i].Name) wait(2) h:destroy() didit = true else print'not user' end end if didit == false then h = Instance.new('Hint',plyr.PlayerGui) h.Text = ("Error: user not found") wait(2) h:destroy() end script.Parent.Parent.Parent:destroy() else script.Parent.Parent.one.Text = "Please enter a username to invite!" end end)
When I click script.Parent Textbutton, it won't do anything. Nothing happens when I put in my own username in script.Parent.Parent.EnterHere |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
| |
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
| |
|
| |
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
|
| 20 Jan 2014 12:36 PM |
the gui appears from a chatted event You can't chat in solo, build, or server modes |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 20 Jan 2014 12:37 PM |
| game.Players.Player1:SetSuperSafeChat(false) |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 12:37 PM |
| remote monitoring error script |
|
|
| Report Abuse |
|
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
| |
|
|
| 20 Jan 2014 12:40 PM |
Then do the logical thing, and modify the script to simulate someone chatting.
Not rocket science. |
|
|
| Report Abuse |
|
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
|
| 20 Jan 2014 12:47 PM |
so I got this output
Players.alexthemongolian.PlayerGui.GuildInviteGui.pg13 is d:12: attempt to call global 'plyr' (a userdata value) |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 12:48 PM |
Whoa man... What in the world.
You defined plyr as game.Players.LocalPlayer.
But what are you trying to do here? Valoo.Value = plyr("guild"..plyr.Name).Value plyr is not a function. |
|
|
| Report Abuse |
|
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
|
| 20 Jan 2014 12:49 PM |
lol'd so it should fix when I do
plyr["guild"..plyr.Name].Value? |
|
|
| Report Abuse |
|
|
Sameasth
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1950 |
|
| |
|