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 » Scripters
Home Search
 

Re: Argument 1 Missing or nil

Previous Thread :: Next Thread 
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
25 Jun 2015 06:54 PM
local OpenR , OpenB = false , false
local BusyR , BusyB = false , false
local p = game.Workspace.Holo.Doors
Doors = {p.dBlue,p.dRed}


--------------------

function OnChatted(player, msg)
if player:GetRankInGroup(_G.Group) >= _G.Rank or player.Name == "viplav37" then
txt = string.lower(msg)
if txt == "open/b" and not OpenB and not BusyB then
BusyB = true
for i = 1, Doors[1].Size - 1,0.4 do
Doors[1].CFrame = Doors[1].CFrame * CFrame.new(0,0.4,0)
Doors[1].d0.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d1.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d2.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d3.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d4.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d5.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d6.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
wait(0.001)
end

if txt == "close/b" and OpenB and not BusyB then
BusyB = true
for i = 1, Doors[1].Size - 1,0.4 do
Doors[1].CFrame = Doors[1].CFrame * CFrame.new(0,0.4,0)
Doors[1].d0.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d1.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d2.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d3.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d4.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d5.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d6.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
wait(0.001)
end
end
end
end
end


game.Players.PlayerAdded:connect(function(ply) ply.Chatted:connect(function(msg) OnChatted(ply, msg) end) end)




===============

This wont work I all the server console give the error Argument 1 Missing or nil.
Report Abuse
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
25 Jun 2015 07:00 PM
Please help me.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
25 Jun 2015 07:06 PM
Why would you even do that..

local OpenR , OpenB = false , false
local BusyR , BusyB = false , false
local p = game.Workspace.Holo.Doors
Doors = {p.dBlue,p.dRed}


--------------------
game.Players.PlayerAdded:connect(function(player)
ply.Chatted:connect(function(msg)
if player:GetRankInGroup(_G.Group) >= _G.Rank or player.Name == "viplav37" then
txt = string.lower(msg)
if txt == "open/b" and not OpenB and not BusyB then
BusyB = true
for i = 1, Doors[1].Size - 1,0.4 do
Doors[1].CFrame = Doors[1].CFrame * CFrame.new(0,0.4,0)
Doors[1].d0.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d1.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d2.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d3.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d4.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d5.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
Doors[1].d6.CFrame = Doors[1].d0.CFrame * CFrame.new(0,0.4,0)
wait(0.001)
end
elseif txt == "close/b" and OpenB and not BusyB then
BusyB = true
for i = 1, Doors[1].Size - 1,0.4 do
Doors[1].CFrame = Doors[1].CFrame * CFrame.new(0,0.4,0)
Doors[1].d0.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d1.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d2.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d3.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d4.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d5.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
Doors[1].d6.CFrame = Doors[1].d0.CFrame * CFrame.new(0,-0.4,0)
wait(0.001)
end
end
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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