generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: ok malfunctioned again

Previous Thread :: Next Thread 
Sameasth is not online. 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 is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
20 Jan 2014 12:34 PM
Check the output window.
Report Abuse
Sameasth is not online. Sameasth
Joined: 02 Nov 2013
Total Posts: 1950
20 Jan 2014 12:34 PM
can't.
Report Abuse
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
20 Jan 2014 12:35 PM
Why not?
Report Abuse
Sameasth is not online. 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 is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
20 Jan 2014 12:37 PM
game.Players.Player1:SetSuperSafeChat(false)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
20 Jan 2014 12:37 PM
remote monitoring error script
Report Abuse
Sameasth is not online. Sameasth
Joined: 02 Nov 2013
Total Posts: 1950
20 Jan 2014 12:38 PM
that method is protected
Report Abuse
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
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 is not online. 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
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
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 is not online. 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 is not online. Sameasth
Joined: 02 Nov 2013
Total Posts: 1950
20 Jan 2014 12:50 PM
yeah it worked thx
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image