|
| 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 |
|
|
|
| 24 Jan 2012 09:26 PM |
How do I use newproxy()?
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jan 2012 10:50 AM |
@swim. Never heard of it. Might be HTML floodcheck.
~I am THE Forum Troll~ |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 25 Jan 2012 10:52 AM |
"Might be HTML" WHAT!?
[The silence answered my question.] |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 25 Jan 2012 05:30 PM |
it should be game.Players.LocalPlayer.Character.Died:connect(function()
~I am THE Forum Troll~ |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 05:31 PM |
@Tech My problem is in my thread. :P
† KMXD † |
|
|
| Report Abuse |
|
|