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: The Unfixable GUI/Script (All in one post)

Previous Thread :: Next Thread 
ParamountGod is not online. ParamountGod
Joined: 09 May 2009
Total Posts: 10001
08 Feb 2014 09:34 PM
Problem: My GUI works in all of my places but the one I want to use it in, it even works in play solo in the one I want to use it in, but not the actual game.

Configuration:
ScreenGui
> Frame
> The LocalScript, Blue, Black, Yellow (Colors)
> Done
> Reset

Everything at setting the cameramode and angle and above works, but the rest somehow doesn't.



for i = 1, 1000 do
if Game.Players.LocalPlayer ~= nil then break end
wait()
end
Game.Workspace.CurrentCamera:ClearAllChildren()
player = Game.Players.LocalPlayer
--color = player:findFirstChild("WandColor")
color = Instance.new("BrickColorValue",Player)
color.Value = BrickColor.new("Bright red")
bin = script.Parent
main = bin.Parent
wc = nil
if player.Character == nil then return end
char = player.Character
local thing = Game.Lighting.WandChange:clone()
thing.Parent = Game.Workspace.CurrentCamera
thing:MoveTo(Vector3.new(5000, -5000, 5000))
char:MoveTo(Vector3.new(5000, -5000, 5000))
local torso = char.Torso
if torso ~= nil then
torso.Anchored = true
end
--Something that it is not letting me post about the coordinateframe and cameratype that works perfectly fine
wc = thing.ChangeWand.Handle
w = script.Parent:GetChildren()
for i = 1, #w do
if w[i]:IsA("TextButton") then
if w[i].Name ~= "Reset" then
w[i].MouseButton1Click:connect(function()
color.Value = BrickColor.new(w[i].BackgroundColor3)
wc.BrickColor = BrickColor.new(w[i].BackgroundColor3)
wc.Mesh.TextureId = ""
end)
end
end
end
main.Reset.MouseButton1Click:connect(function()
color.Value = BrickColor.new("deep orange")
wc.Mesh.TextureId = "http://www.roblox.com/asset/?id=40493302"
end)
main.Done.MouseButton1Click:connect(function()
Game.Workspace.CurrentCamera.CameraType = "Custom"
local clon = Game.Lighting.SpawnGui:clone()
clon.Parent = player.PlayerGui
wait()
main:Remove()
end)
Report Abuse
ParamountGod is not online. ParamountGod
Joined: 09 May 2009
Total Posts: 10001
08 Feb 2014 09:36 PM
Fixed configuration because it does not space properly
>ScreenGui
>>Frame
>>>The LocalScript, and then the colors
>>Reset
>>Done
Report Abuse
ParamountGod is not online. ParamountGod
Joined: 09 May 2009
Total Posts: 10001
09 Feb 2014 09:06 AM
Bump
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