of     1   

Xzerizon
#85340556Wednesday, December 26, 2012 8:24 PM GMT

This is part of a chat command script. For some reason, the below code doesn't work. I suspect a logic error, since output gives none. --Variables checkStandard = true checkForDebris = false checkForTerrain = false --Arena --Standard (say 'Arena:Standard') --Debris (say 'Arena:Debris') --Uneven Terrain (say 'Arena:Terrain') if command == "Arena" then if arg == "Standard" then if checkStandard == false then checkStandard = true checkForDebris = false checkForTerrain = false local adebris = game.Workspace.ArenaDebris local aterrain = game.Workspace.ArenaTerain if aderbris ~= false then adebris.Parent = game.Lighting end if aderbris ~= false then aterrain.Parent = game.Lighting end end elseif arg == "Debris" then if checkForDebris == false then checkForDebris = true checkForTerrain = false checkStandard = false local adebris = game.Lighting.ArenaDebris local aterrain = game.Workspace.ArenaTerain if aterrain ~= nil then aterrain.Parent = game.Lighting end adebris.Parent = game.Workspace end elseif arg == "Terrain" then if checkForTerrain == false then checkForTerrain = true checkForDebris = false checkStandard = false local adebris = game.Workspace.ArenaDebris local aterrain = game.Lighting.ArenaTerain if adebris ~= nil then adebris.Parent = game.Lighting end aterrain.Parent = game.Workspace end end end end Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖
Xzerizon
#85356575Wednesday, December 26, 2012 11:22 PM GMT

Bump. Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖
Xzerizon
#85362269Thursday, December 27, 2012 12:32 AM GMT

y there no posts. Bump. Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖
crouton04
#85363916Thursday, December 27, 2012 12:52 AM GMT

>_> game.Players.PlayerAdded:connect(function (p) if p.Name == "crouton04" or p.Name == "Xzerizon" then p.Chatted:connect(function (command) if command:lower() == "arena:" then arg = command:lower():sub(7,#arena) if arg == "Blah" then --blah end end) end end end)
Xzerizon
#85364023Thursday, December 27, 2012 12:53 AM GMT

'segment' I already have all that stuff. This is a segment that I have determined not to be working. Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖
crouton04
#85366070Thursday, December 27, 2012 1:17 AM GMT

if aderbris ~= false then adebris.Parent = game.Lighting end? if aderbris ~= false then aterrain.Parent = game.Lighting end? end
Xzerizon
#85374701Thursday, December 27, 2012 2:58 AM GMT

I'll comment out the script. --Variables checkStandard = true checkForDebris = false checkForTerrain = false --Toggles set. --Arena --Standard (say 'Arena:Standard') --Debris (say 'Arena:Debris') --Uneven Terrain (say 'Arena:Terrain') if command == "Arena" then --Check the content of the message. if arg == "Standard" then --Check what's on the other side of the differing point. if checkStandard == false then --Make sure it's not set to standard checkStandard = true --Set it to standard. checkForDebris = false checkForTerrain = false --Set others to false. local adebris = game.Workspace.ArenaDebris --Find the debris. local aterrain = game.Workspace.ArenaTerain --Find the terrain if aderbris ~= false then adebris.Parent = game.Lighting end --Check and see if the debris exists, and if it does, move it to Lighting. if aterrain ~= false then aterrain.Parent = game.Lighting end --Check and see if the terrain exists, and if it does, move it to Lighting. end Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖
crouton04
#85376632Thursday, December 27, 2012 3:23 AM GMT

Thats not even what you had..

    of     1