|
| 12 Oct 2012 06:00 PM |
If you need help with a script you have, post it here. Just tell me where the error occurs. If you do not do this, I can't help you. I will try to fix the problem. If I cannot find out why it's incorrect, your best hope is to either find another forum thread, or wait and see if someone else helps you.
~ethan |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 06:12 PM |
Help me with this. I want this to become false
ethanchuffman_is_in_this_forum = true
|
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 06:23 PM |
| You sir, are a NEWB! >:o THAT IS NOT SCRIPTING!! |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 12 Oct 2012 06:41 PM |
@Ethan, Are you stupid? > ethanchuffman_is_in_this_forum = true It's setting a variable called 'ethanchuffman_is_in_this_forum', and it's a boolean variable, and he set it to true, to make it false: ethanchuffman_is_in_this_forum = false |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 06:41 PM |
for i,v in pairs(game.Workspace:GetChildren()) do if v.Name == "ethanchuffman68" then v:Destroy() end end
~xXTheRobotXx,Machination |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 06:53 PM |
| @mamaguy, Oh, I see. But he didn't include the referencing of the variable, so I figured he was new or something. @mach, Yes, that is indeed scripting. x3 |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2012 07:55 PM |
Referencing? Are you serious? When you add a debounce, you don't put a reference. You just put debounce = true
Looks who's new here. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2012 10:51 AM |
Dude. You need to reference a variable to something. Example:
ethanchuffman_is_in_this_forum = Workspace.ethanchuffman68.Humanoid.Jump ethanchuffman_is_in_this_forum = true
Incorrect example: ethanchuffman_is_in_this_forum = true
WHY YOU MIGHT ASK?!: It hasn't referenced to a set thing. SEE?! |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 13 Oct 2012 10:56 AM |
*cough* if you need to reference a variable to somthing, then explain why this works perfectly:
lol = true
if lol == true then lol = false else lol = true end
|
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 13 Oct 2012 12:11 PM |
Ethan is an idiot Ever heard of a boolean you stupid idiot? Now get out. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2012 09:54 PM |
Leave him. Argueing with an idiot is a bad option, he will just drag you down to his level, and beat you with experiance. |
|
|
| Report Abuse |
|
|
TenGauge
|
  |
| Joined: 22 Sep 2012 |
| Total Posts: 202 |
|
| |
|
|
| 16 Oct 2012 04:50 PM |
| Oh, so you wanna call me inexperienced? I bet 5 tix I can script better than all y'all! >:D |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 16 Oct 2012 04:58 PM |
@Ethan I bet 5000 dollars that I could script better than you.
|
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 16 Oct 2012 05:20 PM |
"Kill script(Might work)" "might"
get out |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2012 05:21 PM |
Ethan, what's wrong with my script?
ps = game:GetService("Players")
ps.PlayerAdded:connect(function(p) print(p.Name " has entered the game!") end
ps.PlayerRemoving:connect(function(p) print(p.Name " has left the game!") end |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2012 06:11 PM |
Try this It should work:
p = game.Players
p.PlayerAdded:connect(function(plr) local value = Instance.new("IntValue", Workspace) print(plr.Name.." has arrived!")
while wait() do if plr ~= nil then value.Value = 1 else value.Value = 2 end if value.Value == 2 then print(plr.Name.." is leaving") end end end) |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2012 06:17 PM |
@OP Get out fool.
@Advurso
game.Players.PlayerAdded:connect(function(p) print(p.Name.." has entered the game!") end)
game.Players.PlayerRemoving:connect(function(p) print(p.Name.." has left the game!") end)
------------------------- ~thedestroyer115, http://www.roblox.com/String-Word-Randomizer-item?id=94754887~ |
|
|
| Report Abuse |
|
|
TenGauge
|
  |
| Joined: 22 Sep 2012 |
| Total Posts: 202 |
|
|
| 17 Oct 2012 01:09 AM |
@thedestroyer
I believe that was meant for the OP, not you. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2012 10:01 AM |
It's obvious the OP couldn't answer it so I did.
------------------------- ~thedestroyer115, http://www.roblox.com/String-Word-Randomizer-item?id=94754887~ |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2012 10:45 AM |
Found this on OP's Blurb "Scripting = 5 "
Sad..
|
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 17 Oct 2012 12:03 PM |
@ethan:
First, "If you need help with a script you have, post it here". The section 'Scripting Helpers' was created for that. Pointless thread.
Second, ... > ps = game:GetService("Players")
> ps.PlayerAdded:connect(function(p) >> print(p.Name " has entered the game!") >> end
> ps.PlayerRemoving:connect(function(p) >> print(p.Name " has left the game!") >> end
Errors are clearly visible (c.f: thedestroyer115's script correction above): - string concatenation missing '..' - brackets to close events missing
Why do you answer with another script instead of just correct it ? By the way, you should use events instead of loops. And why you're using an 'IntValue' object in this case ?
Want to fix some scripts ? 'Scripting Helpers' section is here (if you didn't notice that before). |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2012 12:18 PM |
"I bet 5 tix I can script better than all y'all! >:D"
Challenge accepted. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2012 03:11 PM |
Why do you guys get so mad when people post silly things on here? ._.
~+CClone+~ |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 08:16 PM |
| @pokemon, That was from a long time ago, when I was a not so good scripter. |
|
|
| Report Abuse |
|
|