2unknown2
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 9351 |
|
|
| 03 May 2013 08:53 PM |
Everytime I say a command, it makes a message of that command Example: "kill/2unknown2" Message = "l/2unknown2"
Script Below:
local holo = true local loaded = false local lobby = game.workspace.lobby local open = false
Added = function(plyr) plyr.Chatted:connect(function(msg) msg = string.lower(msg) if msg:sub(1,6) == "/kill;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then p = game.Players:findFirstChild(msg:sub(7)) if p then p.Character:breakJoints() end end
if msg:sub(1,3) == "/m;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then m = Instance.new("Message") m.Parent = game.workspace m.Text = ""..msg:sub(4).."" wait(3) m:Destroy() end if msg:sub(1,3) == "/h;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then h = Instance.new("Hint") h.Parent = game.workspace h.Text = ""..msg:sub(4).."" wait(3) h:Destroy() end if msg:sub(1,8) == "/punish;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then ps = game.Players:findFirstChild(msg:sub(9)) if ps then ps.Character.Parent = game.Lighting end end if msg:sub(1,10) == "/unpunish;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then unps = game.Players:findFirstChild(msg:sub(11)) if unps.Character then unps.Character.Parent = game.workspace unps.Character:MakeJoints() end end if msg:sub(1,4) == "/ff;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then ff = game.Players:findFirstChild(msg:sub(5)) if ff ~= nil then f = Instance.new("ForceField") f.Parent = ff.Character end end if msg:sub(1,6) == "/unff;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then unff = game.Players:findFirstChild(msg:sub(7)) if unff.Character.ForceField ~= nil then unff.Character.ForceField:remove() end end if msg:sub(1,6) == "/kick;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then ki = game.Players:findFirstChild(msg:sub(7)) if ki ~= nil then ki:remove() end end if msg:sub(1,11) == "/invisible;" and plyr.Name == "vincentfeathers" or plyr.Name == "2unknown2" then inv = game.Players:findFirstChild(msg:sub(12)) if inv ~= nil then inv.Character.Head.Transparency = 1 inv.Character["Right Leg"].Transparency = 1 inv.Character["Left Leg"].Transparency = 1 inv.Character["Right Arm"].Transparency = 1 inv.Character["Left Arm"].Transparency = 1 inv.Character.Torso.Transparency = 1 inv.Character.Head.face:Clone().Parent = game.Lighting inv.Character.Head.face:remove() end end if msg:sub(1,9) == "/visible;" and plyr.Name == "2unknown2" or plyr.Name == "vincentfeathers" then uninv = game.Players:findFirstChild(msg:sub(10)) if uninv ~= nil then uninv.Character.Head.Transparency = 0 uninv.Character["Right Leg"].Transparency = 0 uninv.Character["Left Leg"].Transparency = 0 uninv.Character["Right Arm"].Transparency = 0 uninv.Character["Left Arm"].Transparency = 0 uninv.Character.Torso.Transparency = 0 game.Lighting.face.Parent = plyr.Head end end if msg:sub(1,6) == "/fire;" and plyr.Name == "2unknown2" then fre = game.Players:findFirstChild(msg:sub(7)) if fre ~= nil then f = Instance.new("Fire") f.Parent = fre.Character.Torso f.Size = "7" end end if msg:sub(1,8) == "/unfire;" and plyr.Name == "2unknown2" then unfre = game.Players:findFirstChild(msg:sub(9)) if unfre ~= nil and unfre.Character.Fire ~= nil then fire = unfre:findFirstChild("Fire") fire:remove() end end if msg:sub(1,6) == "/nova;" and plyr.Name == "2unknown2" then nov = game.Lighting:findFirstChild(msg:sub(7)) if holo and loaded == false then nov:Clone().Parent = game.workspace holo = true loaded = true end end if msg:sub(1,5) == "/end;" and plyr.Name == "2unknown2" then ed = game.Workspace:findFirstChild(msg:sub(6)) if ed.Parent == game.workspace and loaded then ed:remove() loaded = false end end if msg:sub(1,11) == "/lobby;open" and open == false and plyr.Name == "2unknown2" then open = true lobby.Transparency = 0.7 wait(0.2) lobby.Transparency = 0.8 wait(0.2) lobby.Transparency = 0.9 wait(0.2) lobby.Transparency = 1 wait(0.2) lobby.CanCollide = false open = false end if msg:sub(1,12) == "/lobby;close" and open == false and plyr.Name == "2unknown2" then open = true lobby.Transparency = 0.9 wait(0.2) lobby.Transparency = 0.8 wait(0.2) lobby.Transparency = 0.7 lobby.CanCollide = true end if msg:sub(1,8) == "/script;" and plyr.Name == "2unknown2" then s = ""..msg:sub(1,9).."" loadstring(s)() end if msg:sub(1,7) == "/clear;" then for i,v in pairs(game.workspace:GetChildren()) do if v.ClassName == "Message" or v.ClassName == "Hint" then v:Destroy() end end end end) end
Game.Players.PlayerAdded:connect(Added) for _,n in next,Game.Players:GetPlayers() do Added(n) end
|
|
|
| Report Abuse |
|
|
| 03 May 2013 08:56 PM |
ok
so
here's a 100 line script and I expect you to fix it
nonononono.
It doesn't work like this.
figure out the area the error is located, no one feels like reading your entire script and fixing it.
|MassiveGman| "I reject your reality and substitute my own" |
|
|
| Report Abuse |
|
2unknown2
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 9351 |
|
|
| 03 May 2013 09:00 PM |
I've been looking over it for 2 hours.
#blackpower |
|
|
| Report Abuse |
|
|
| 03 May 2013 10:14 PM |
game.Workspace not game.workspace idk try that |
|
|
| Report Abuse |
|
|
| 03 May 2013 10:31 PM |
Theses should ALL work...
that is not the problem...
Game.Workspace Game.workspace game.Workspace game.Workspace Workspace workspace Game:service('Workspace') Game:service("Workspace") Game:service'Workspace' Game:service"Workspace" Game:GetService("Workspace") Game:GetService('Workspace") Game:GetService'Workspace' Game:GetService"Workspace" game:service('Workspace') game:service("Workspace") game:service'Workspace' game:service"Workspace" game:GetService("Workspace") game:GetService('Workspace") game:GetService'Workspace' game:GetService"Workspace"
|
|
|
| Report Abuse |
|