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: Script not working in server, but is working in solo.

Previous Thread :: Next Thread 
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
28 Aug 2013 01:05 PM
This is a script to make a BIllboard Gui. The gui clones right. And gets the name right, (t1.Text). But it doesn't get t2.Text or t3.Text. It just stays at the default in the server. In solo it works fine.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
28 Aug 2013 01:05 PM
wait(1)
clone = script.Parent.Parent.Head:clone()
clone.Parent = script.Parent.Parent.Head
clone.BrickColor = clone.Parent.BrickColor
clone.Name = "fake"
clone.Transparency = 0
clone.face:remove()


weld = Instance.new("Weld")
weld.Parent = script.Parent.Parent.Head
weld.Part0 = script.Parent.Parent.Head
weld.Part1 = clone
clone.CFrame = script.Parent.Parent.Head.CFrame
weld.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)


user = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
team = user.TeamColor
script.Parent.Enabled = true
health = user.Character.Humanoid.Health
maxh = user.Character.Humanoid.Health


while true do
script.Parent.Adornee = script.Parent.Parent.Head
script.Parent.talk.Text = (user.Name)
script.Parent.talk2.Text = (team.Color)
script.Parent.talk3.Text = (health.."/"..maxh)
if user:IsInGroup(916672) then
rank = user:GetRoleInGroup(916672)
script.Parent.talk2.Text = (rank)
else script.Parent.talk2.Text = "Not In TDR"
end

if (health >= 51) then
script.Parent.talk3.TextColor3 = Color3.new(0/255, 120/255, 0/255)
elseif (health >= 25) then
script.Parent.talk3.TextColor3 = Color3.new(255/255, 255/255, 0/255)
elseif (health >= 1) then
script.Parent.talk3.TextColor3 = Color3.new(255/255, 0/255, 0/255)
end
wait(0.1)
end
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
28 Aug 2013 01:10 PM
Bump PLEASE HELP!
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
28 Aug 2013 01:14 PM
Bump
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
28 Aug 2013 01:58 PM
Try using :WaitForChild() anywhere possible.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
28 Aug 2013 03:38 PM
It's fine now. I fixed it with coroutines.
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