|
| 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 |
|
|
| 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 |
|
| |