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: Whats wrong with my script?

Previous Thread :: Next Thread 
TollerenceBreak is not online. TollerenceBreak
Joined: 10 Nov 2013
Total Posts: 2160
25 May 2017 02:28 AM
Trying to do a character gui changer
This script was saved on my script folder from about 6 months ago and it worked before
local player = script.Parent.Parent.Parent.Parent.Parent.Parent
local Hat = player:WaitForChild("Hat")
local HatFolder = (game:GetService('ReplicatedStorage'):WaitForChild('Hats')
local Count = 1
local Hats = ()

local LB = script.Parent:WaitForChild('LeftButton')
local RB = script.Parent:WaitForChild('RightButton')

function update()

script.Parent:WaitForChild('HatName').Text = Hats[Count].Name
Hat.Value = Hats[Count]
end
for i,v in(HatFolder:GetChildren do())
Table.insert(Hats,v)
end)










LB.MouseButton1Down:Connect(function))
if Count > 1 then
Count = Count - 1
Update()
end

RB.MouseButton1Down:Connect(function))
if count >= #hats then
else
Count = Count + 1
Update()
end


Guitar hero more like guitar zero
Report Abuse
BStandsForBuilding is not online. BStandsForBuilding
Joined: 06 Apr 2015
Total Posts: 651
25 May 2017 02:34 AM
Just a question.

1. LocalScript or ServerScript?
Report Abuse
TollerenceBreak is not online. TollerenceBreak
Joined: 10 Nov 2013
Total Posts: 2160
25 May 2017 02:41 AM
Sever script


Guitar hero more like guitar zero
Report Abuse
BStandsForBuilding is not online. BStandsForBuilding
Joined: 06 Apr 2015
Total Posts: 651
25 May 2017 03:42 AM
I would highly suggest using a local script for any form of GUI work.

Once you do that, you can easily do:

local player = game.Players.LocalPlayer

That might have something to do with it right now. It's really late for me so I can't be bothered to look at in studio right now, but if this isn't resolved in the morning I'll look into it.
Report Abuse
sircfenner is not online. sircfenner
Joined: 29 Aug 2008
Total Posts: 2430
25 May 2017 03:44 AM
There are a great number of syntax errors in your script. I can tell that you either did not write this or have no idea how it works, so I would suggestion that rather than us simply 'fixing' it for you, you go and take a look at some basic introductory info on the wiki.
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