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 » Scripters
Home Search
 

Re: How do I make this script work in online servers?

Previous Thread :: Next Thread 
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 04:56 PM
local p = game.Players.LocalPlayer.Character


function k()
print(p.Name)
p.Head.Transparency = 1
script.Parent.BillboardGui.Adornee = p.Head
script.Parent.BillboardGui.TextLabel.Visible = true
script.Parent.BillboardGui.TextLabel.Text = p.Name
end

script.Parent.MouseButton1Click:connect(k)

It works fine when I test it in studios, but when I go online to my game, it doesn't at all....

Note; This is in a local script, in the player's Gui, so should I put it in a regular script?
Report Abuse
KlinkStudios is not online. KlinkStudios
Joined: 31 Oct 2013
Total Posts: 563
25 Jan 2015 04:57 PM
Do you have FilteringEnabled turned on?
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 04:59 PM
What do you mean? .-.
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 05:01 PM
b1
Report Abuse
Tuneable is not online. Tuneable
Joined: 16 Feb 2013
Total Posts: 2932
25 Jan 2015 05:03 PM
try adding at the top

repeat wait(1) until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 05:16 PM
Thanks but it still didn't work....
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 05:22 PM
*Doesn't

b2
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 05:29 PM
Nevermind, I finally got it working;

local p = game.Players.LocalPlayer

wait(1)
repeat until
game.Players.LocalPlayer and game.Players.LocalPlayer.Character


function k()
print(p.Name)
p.Character.Head.Transparency = 1
script.Parent.BillboardGui.Adornee = p.Character.Head
script.Parent.BillboardGui.TextLabel.Visible = true
script.Parent.BillboardGui.TextLabel.Text = p.Name
end

script.Parent.MouseButton1Click:connect(k)
Report Abuse
wwwo197 is not online. wwwo197
Joined: 19 Oct 2012
Total Posts: 1006
25 Jan 2015 05:30 PM
Thanks for the help guys! :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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