|
while true do --loop
wait() -- wait
if script.Parent.Parent.Speed.Value == <2 then -- if the value is less then 2 then
script.Parent.Script.Disabled = true --disable the script
end
if script.Parent.Parent.Speed.Value == >2 then -- if the value is greater then 2
script.Parent.Script.Disabled = false -- enable the script
end
end |
|
|
*facepalm
learn how to use conditionals.
while true do --loop
wait() -- wait
if script.Parent.Parent.Speed.Value <= 2 then -- if the value is less then 2 then
script.Parent.Script.Disabled = true --disable the script
end
if script.Parent.Parent.Speed.Value >= 2 then -- if the value is greater then 2
script.Parent.Script.Disabled = false -- enable the script
end
end |
|
|
i know how but i haven't ever done so thats the only conditionals i don't know but now i do so thanks |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@Crazy
Mon Oct 18 17:20:12 2010 - Post.Script:1: '*' expected (to close '*' at line 1) near 'facepalm' |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@Crazy
Mon Oct 18 17:20:12 2010 - Post.Script:1: '.' expected (to close '.' at line 1) near 'eof' |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@Crazy
Mon Oct 18 17:20:12 2010 - Post.Script:1: '*' expected (to close '*' at line 5) near 'eof' |
|
|
That * closed the * on the first line of my posts on this thread. |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
The first * was not a _G or a Shared e-e so it does not count. |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Mon Oct 18 17:28:45 2010 - Post.Script:1: attempt to index global 'floodcheck' (a nil value)
Mon Oct 18 17:28:45 2010 - Post.Script, line 3 stack end |
|
|
function removefloodcheck()
print("._.")
floodcheck:remove()
end
setfenv(removefloodcheck, {floodcheck = Roblox.Forums:getService("Floodcheck"), print = print}) |
|
|
function removefloodcheck()
print("._.")
floodcheck:remove()
end
setfenv(removefloodcheck, {floodcheck = Roblox.Forums:getService("Floodcheck"), print = print})
removefloodcheck() |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Mon Oct 18 17:32:56 2010 - 'Floodcheck' is not a valid Service name
Mon Oct 18 17:32:56 2010 - Workspace.Script, line 6 stack end
You forgot the capitalization D: |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Yes you did D: the service name is FloodCheck, otherway the OutPut would not say anything. |
|
|
....
function removefloodcheck()
print("._.")
floodcheck:remove()
end
setfenv(removefloodcheck, {floodcheck = Roblox.Forums:getService("FloodCheck"), print = print})
removefloodcheck()
But ya gotta love my setfenv :D |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Mon Oct 18 17:38:05 2010 - Post.Script:1: unexpected symbol near '...' |
|
|
I ended each . with another . |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
But .... is not a valid argument in a script, so it will stop it from working. |
|
|
--....
function removefloodcheck()
print("._.")
floodcheck:remove()
end
setfenv(removefloodcheck, {floodcheck = Roblox.Forums:getService("FloodCheck"), print = print})
removefloodcheck()
But ya gotta love my setfenv :D |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Mon Oct 18 17:42:17 2010 - Post.Script:11: '=' expected near 'ya' |
|