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: Ummm... why is this..?

Previous Thread :: Next Thread 
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
01 Nov 2013 11:03 PM
This script works in Build mode, but in regular mode for like a regular player it doesnt work. I have tried local and non-local Scripts.
------------
brick = script.Parent

function onTouch(part)
local Player = Game.Players.LocalPlayer
Player.PlayerGui.ChestInv1.Frame.Visible=true
player.Button1Down:connect(function()
end)
end
brick.Touched:connect(onTouch)
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
01 Nov 2013 11:05 PM
player.Button1Down:conect(function()
end)

? what is this, get rid of it
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
01 Nov 2013 11:06 PM
Oops forgot to remove that >.<
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
01 Nov 2013 11:08 PM
This doesnt work either?

brick = script.Parent

function onTouch(part)
local Player = Game.Players.LocalPlayer
Player.PlayerGui.ChestInv1.Frame.Visible=true
end
brick.Touched:connect(onTouch)
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
01 Nov 2013 11:12 PM
lower case g i think in game.Players ? if thats not it then there must be something wrong with your playergui line
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
01 Nov 2013 11:18 PM
Unless something in this is an problem
---------
local Gui = script.Parent

while not Gui or not Gui:findFirstChild"Frame" do
wait()
Gui = script.Parent
end

for i,v in next, Gui.Frame:GetChildren() do
v.Visible = false
end

local OSize = Gui.Frame.Size
local OPos = Gui.Frame.Position
Gui.Frame.Position = Gui.Frame.Position + UDim2.new(0, Gui.Frame.AbsoluteSize.X/2, 0, Gui.Frame.AbsoluteSize.Y/2)
Gui.Frame.Size = UDim2.new(0,0,0,0)

Gui.Frame.Visible = true
Gui.Frame:TweenSizeAndPosition(OSize,OPos)
wait(1)

for i,v in next, Gui.Frame:GetChildren() do
v.Visible = true
end

Gui.Frame.Close.MouseButton1Click:connect(function ()
for i,v in next, Gui.Frame:GetChildren() do
v.Visible = false
end
Gui.Frame:TweenSizeAndPosition(UDim2.new(0,0,0,0),Gui.Frame.Position + UDim2.new(0, Gui.Frame.AbsoluteSize.X/2, 0, Gui.Frame.AbsoluteSize.Y/2))
wait(1)
Gui:Destroy()
end)
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
01 Nov 2013 11:23 PM
brick = script.Parent
brick.Touched:connect(function(part)
local Player = game.Players.LocalPlayer
Player.PlayerGui.ChestInv1.Frame.Visible=true
end)
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
01 Nov 2013 11:28 PM
Dun work^
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
02 Nov 2013 12:28 AM
Local Scripts don`t run unless they are under the player.
Non local scripts can`t use local player.
See the problem?
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
02 Nov 2013 10:06 AM
So how am I suppose to do this?
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
02 Nov 2013 11:37 AM
Bump
Report Abuse
Geodesic is not online. Geodesic
Joined: 02 Jun 2013
Total Posts: 998
02 Nov 2013 11:40 AM
brick = game.Workspace.Part --or where ever the part is

function onTouch(part)
local Player = Game.Players.LocalPlayer
Player.PlayerGui.ChestInv1.Frame.Visible=true
end
brick.Touched:connect(onTouch)

localscript in startergui or starterpack
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