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: tech's help thread

Previous Thread :: Next Thread 
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
24 Jan 2012 09:24 PM
Post your various scripting questions here! I may not be able to answer some questions (I don't know everything :P), and in that case, other viewers may answer the question if I am not quick enough, or if I didn't know the answer.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Jan 2012 09:26 PM
How do I use newproxy()?

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
hockeyfan991 is not online. hockeyfan991
Joined: 30 Jan 2010
Total Posts: 6833
24 Jan 2012 09:26 PM
im trying to get a script that gives users wearing certain shirts weapons how do i do it

Even A Broken Clock Is Right Twice A Day.
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
25 Jan 2012 10:50 AM
local vipId = "ShirtGraphic of shirt here"
local weapon = game.Lighting["WeaponName here"]

game.Players.PlayerAdded:connect(function(p)
if p.Character:FindFirstChild("Shirt") ~= nil then
if p.Character.Shirt.ShirtGraphic == vipId then
p.Changed:connect(function(prop)
if prop == "Character" then
repeat wait() until p ~= nil and p.Character ~= nil
weapon:Clone().Parent = p.Backpack
end
end)
end
end
end)

~I am THE Forum Troll~
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
25 Jan 2012 10:50 AM
@swim. Never heard of it. Might be HTML
floodcheck.

~I am THE Forum Troll~
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Jan 2012 10:52 AM
@tech

http://wiki.roblox.com/index.php/Newproxy#newproxy_.28boolean_or_proxy.29
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
25 Jan 2012 10:52 AM
"Might be HTML" WHAT!?

[The silence answered my question.]
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
25 Jan 2012 10:56 AM
@Rat. I thought it since it's got "proxy" in it and everything I hear with the word "proxy" in it has something to do with C++, C#, or HTML

~I am THE Forum Troll~
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
25 Jan 2012 11:38 AM
script.Parent.MouseButton1Down:connect(function()
game.Lighting.LinkedSword:clone().Parent=script.Parent.Parent.Parent.Parent.Backpack
script.Parent.Visible=false
end)

local humanoid=game.LocalPlayer.Character.Humanoid
if humanoid.health=0 then
script.Parent.Visible=true
end

--

why does it say: Players.Player.PlayerGui.ScreenGui.TextButton.Script:7: 'then' expected near '=' when testing it?
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
25 Jan 2012 11:58 AM
Well, when you compare two objects you used two equal signs to indicate that you are comparing them. If you are setting a value, such as script.Parent.Visible = true you would use only one equal sign.

if humanoid.health=0 then would have to be:

if humanoid.Health == 0 then

Also are you trying to make it so that when they die it appears again? Because if so, a .Died event may be more useful.
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
25 Jan 2012 12:11 PM
Oh, I completely forgot about that, thanks for the information. And I'm going to try the .Died event :)
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
25 Jan 2012 12:39 PM
Well you can say it has a bit to do with C++, not entirely but a tiny little bit. It's to create userdata as if you were doing it in C++ but limited.

[The silence answered my question.]
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
25 Jan 2012 01:43 PM
Hmm.. Can't seem to find what to put in front of the .Died argument, I tried:

1) game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()

end)

2) game.Players:FindFirstChild("Humanoid").Died:connect(function()

end)

--

Neither worked :(
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
25 Jan 2012 01:54 PM
I think it's funny how all of the people who post in help threads don't realize that they could easily just make a new thread about it.
Report Abuse
Cyrok is not online. Cyrok
Joined: 11 Jan 2012
Total Posts: 630
25 Jan 2012 01:59 PM
This thread is (sorry to say) pointless. Why would there be on big help thread when you can make your own separate thread and get replies faster with better responses?
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
25 Jan 2012 05:30 PM
it should be
game.Players.LocalPlayer.Character.Died:connect(function()

~I am THE Forum Troll~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Jan 2012 05:31 PM
@Tech My problem is in my thread. :P

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