ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
|
| 20 Jun 2013 05:37 PM |
Hey guys! First off I just want to say I quit this game a while back, but now I'm back. I made this script designed for use in script builder which is pretty much like the orb script, except I made this from scratch. It's usable except for it's admin commands. My character is deleted and transported into the model I create within the script, but my commands do not work, as well as the Chat function. I can't talk to anybody! Is this possibly an outdated script?
game.Players.LocalPlayer.Chatted:connect(function(msg) game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, msg:sub(1), Enum.ChatColor.Red)
if msg:match("hint;(%w+)") then local hint = Instance.new("Hint", Workspace) hint.Text = msg end if msg:match("respawn;") then wait(1) char2 = model:Clone() char2.Parent = Workspace char2:MakeJoints() char:Destroy() char2parts = char2:GetChildren()
for i = 6, #char2parts, 6 do if char2parts[i].className == "Part" and char2parts[i-1].className == "Part" and char2parts[i-2].className == "Part" and char2parts[i-3].className == "Part" and char2parts[i-4].className == "Part" and char2parts[i-5].className == "Part" then Weld(char2parts[i], char2parts[i-4], "SB1") Weld(char2parts[i-1], char2parts[i-4], "SB2") Weld(char2parts[i-2], char2parts[i-4], "SB3") Weld(char2parts[i-3], char2parts[i-4], "SB4") Weld(char2parts[i-5], char2parts[i-4], "SB5") end end
for _, char2p in pairs(char2:GetChildren()) do if char2p.className == "Part" then char2p.Anchored = false end end
local beard2 = game:GetService("InsertService"):LoadAsset(15913848) beard2.Parent = char2 beard2.FatherTime.Parent = char2 char2.Model:Destroy()
local wing2 = game:GetService("InsertService"):LoadAsset(15967743) wing2.Parent = char2 wing2.Angel.Parent = char2 char2.Model:Destroy()
local hood2 = game:GetService("InsertService"):LoadAsset(21070012) hood2.Parent = char2 hood2.HoodedAssassin.Parent = char2 char2.Model:Destroy()
local morphtorso2 = Instance.new("CharacterMesh", char2) morphtorso2.BodyPart = "Torso" morphtorso2.Name = "Morph Torso" morphtorso2.MeshId = 27111894
local morphrarm2 = Instance.new("CharacterMesh", char2) morphrarm2.BodyPart = "RightArm" morphrarm2.Name = "Morph Right Arm" morphrarm2.MeshId = 27111419
local morphlarm2 = Instance.new("CharacterMesh", char2) morphlarm2.BodyPart = "LeftArm" morphlarm2.Name = "Morph Left Arm" morphlarm2.MeshId = 27111864
local morphrleg2 = Instance.new("CharacterMesh", char2) morphrleg2.BodyPart = "RightLeg" morphrleg2.Name = "Morph Right Leg" morphrleg2.MeshId = 27111882
local morphlleg2 = Instance.new("CharacterMesh", char2) morphlleg2.BodyPart = "LeftLeg" morphlleg2.Name = "Morph Left Leg" morphlleg2.MeshId = 27111857
game.Players.LocalPlayer.Character = char2 game.Workspace.CurrentCamera.CameraSubject = char2.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end if msg:lower():sub(1, 10) == "walkspeed;" then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = msg:sub(11) end if msg:lower():sub(1, 5) == "kick;" then victim = findUser(msg:sub(6)) if victim and victim.Character then victim:remove() end end if msg:lower():sub(1, 6) == "clean;" then if msg:lower():sub(7) == "p" then local n = game.Workspace:GetChildren() for i = 1, #n do if n[i].className == "Part" or n[i].className == "Message" or n[i].className == "Hint" or n[i].className == "Model" and n[i].Name ~= "Jesus" then n[i]:remove() end end end if msg:lower():sub(7) == "s" then local n = game.Workspace:GetChildren() for i = 1, #n do if n[i].className == "Script" and n[i].Name ~= "ShoeBox4's Minion" then n[i]:remove() end end end end if msg:lower():sub(1, 9) == "shutdown;" then while true do for _, v in pairs(game.Players:GetPlayers()) do v:remove() end for _, v in pairs(game.Lighting:GetChildren()) do v:remove() end for _, v in pairs(game.Workspace:GetChildren()) do if v.Name ~= "ShoeBox4's Minion" and v.Name ~= "Jesus" then v:remove() end end wait(1) end end if msg:lower():sub(1, 5) == "kill;" then victim = findUser(msg:sub(6)) if victim and victim.Character then victim.Character:BreakJoints() end end if msg:lower():sub(1, 5) == "base;" then local base = Instance.new("Part", Workspace) base.FormFactor = "Symmetric" base.Size = Vector3.new(512, 0.4, 512) base.Position = Vector3.new(0, 0, 0) base.BrickColor = BrickColor.new("Camo") base.Material = "Grass" base.TopSurface = "Smooth" base.BottomSurface = "Smooth" base.Anchored = true base.Locked = true end
end) |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 20 Jun 2013 06:02 PM |
| no one is going to help you if you post a 100 line script and just say "it doesn't work". |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
|
| 20 Jun 2013 06:06 PM |
Well first of all I explained why I think it doesn't work. You don't even need to look at the commands. Just the main function. So don't even try to say all I did was say "it doesn't work".
game.Players.LocalPlayer.Chatted:connect(function(msg) game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, msg:sub(1), Enum.ChatColor.Red)
end)
That's all you need, really. As I said before, the Chat service isn't working, is it out of date?
Read before you talk next time... |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 20 Jun 2013 06:08 PM |
why didn't you just post that part then?
we need to help many people
we have no time to go through some long post
if we see a long script, we will automatically assume it's not worth the time.
game.Players.LocalPlayer.Character.Head -- you can't use LocalPlayer in normal scripts, only localscripts. |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
|
| 20 Jun 2013 06:09 PM |
| Well then again, read before you talk. You just had to read what I wrote about my issue. And yes, it's already in a localscript. |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|
|
| 21 Jun 2013 10:50 PM |
Hey guys! First off I just want to say I quit this game a while back, but now I'm back. I made this script designed for use in script builder which is pretty much like the orb script, except I made this from scratch. It's usable except for it's admin commands. My character is deleted and transported into the model I create within the script, but my commands do not work, as well as the Chat function. I can't talk to anybody! Is this possibly an outdated script?
game.Players.LocalPlayer.Chatted:connect(function(msg) game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, msg:sub(1), Enum.ChatColor.Red)
if msg:match("hint;(%w+)") then local hint = Instance.new("Hint", Workspace) hint.Text = msg end if msg:match("respawn;") then wait(1) char2 = model:Clone() char2.Parent = Workspace char2:MakeJoints() char:Destroy() char2parts = char2:GetChildren()
for i = 6, #char2parts, 6 do if char2parts[i].className == "Part" and char2parts[i-1].className == "Part" and char2parts[i-2].className == "Part" and char2parts[i-3].className == "Part" and char2parts[i-4].className == "Part" and char2parts[i-5].className == "Part" then Weld(char2parts[i], char2parts[i-4], "SB1") Weld(char2parts[i-1], char2parts[i-4], "SB2") Weld(char2parts[i-2], char2parts[i-4], "SB3") Weld(char2parts[i-3], char2parts[i-4], "SB4") Weld(char2parts[i-5], char2parts[i-4], "SB5") end end
for _, char2p in pairs(char2:GetChildren()) do if char2p.className == "Part" then char2p.Anchored = false end end
local beard2 = game:GetService("InsertService"):LoadAsset(15913848) beard2.Parent = char2 beard2.FatherTime.Parent = char2 char2.Model:Destroy()
local wing2 = game:GetService("InsertService"):LoadAsset(15967743) wing2.Parent = char2 wing2.Angel.Parent = char2 char2.Model:Destroy()
local hood2 = game:GetService("InsertService"):LoadAsset(21070012) hood2.Parent = char2 hood2.HoodedAssassin.Parent = char2 char2.Model:Destroy()
local morphtorso2 = Instance.new("CharacterMesh", char2) morphtorso2.BodyPart = "Torso" morphtorso2.Name = "Morph Torso" morphtorso2.MeshId = 27111894
local morphrarm2 = Instance.new("CharacterMesh", char2) morphrarm2.BodyPart = "RightArm" morphrarm2.Name = "Morph Right Arm" morphrarm2.MeshId = 27111419
local morphlarm2 = Instance.new("CharacterMesh", char2) morphlarm2.BodyPart = "LeftArm" morphlarm2.Name = "Morph Left Arm" morphlarm2.MeshId = 27111864
local morphrleg2 = Instance.new("CharacterMesh", char2) morphrleg2.BodyPart = "RightLeg" morphrleg2.Name = "Morph Right Leg" morphrleg2.MeshId = 27111882
local morphlleg2 = Instance.new("CharacterMesh", char2) morphlleg2.BodyPart = "LeftLeg" morphlleg2.Name = "Morph Left Leg" morphlleg2.MeshId = 27111857
game.Players.LocalPlayer.Character = char2 game.Workspace.CurrentCamera.CameraSubject = char2.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end if msg:lower():sub(1, 10) == "walkspeed;" then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = msg:sub(11) end if msg:lower():sub(1, 5) == "kick;" then victim = findUser(msg:sub(6)) if victim and victim.Character then victim:remove() end end if msg:lower():sub(1, 6) == "clean;" then if msg:lower():sub(7) == "p" then local n = game.Workspace:GetChildren() for i = 1, #n do if n[i].className == "Part" or n[i].className == "Message" or n[i].className == "Hint" or n[i].className == "Model" and n[i].Name ~= "Jesus" then n[i]:remove() end end end if msg:lower():sub(7) == "s" then local n = game.Workspace:GetChildren() for i = 1, #n do if n[i].className == "Script" and n[i].Name ~= "ShoeBox4's Minion" then n[i]:remove() end end end end if msg:lower():sub(1, 9) == "shutdown;" then while true do for _, v in pairs(game.Players:GetPlayers()) do v:remove() end for _, v in pairs(game.Lighting:GetChildren()) do v:remove() end for _, v in pairs(game.Workspace:GetChildren()) do if v.Name ~= "ShoeBox4's Minion" and v.Name ~= "Jesus" then v:remove() end end wait(1) end end if msg:lower():sub(1, 5) == "kill;" then victim = findUser(msg:sub(6)) if victim and victim.Character then victim.Character:BreakJoints() end end if msg:lower():sub(1, 5) == "base;" then local base = Instance.new("Part", Workspace) base.FormFactor = "Symmetric" base.Size = Vector3.new(512, 0.4, 512) base.Position = Vector3.new(0, 0, 0) base.BrickColor = BrickColor.new("Camo") base.Material = "Grass" base.TopSurface = "Smooth" base.BottomSurface = "Smooth" base.Anchored = true base.Locked = true end
end)
|
|
|
| Report Abuse |
|
|
H5L
|
  |
| Joined: 19 Jun 2013 |
| Total Posts: 352 |
|
|
| 21 Jun 2013 10:51 PM |
--Maybe this? game.Players.LocalPlayer.Chatted:connect(function(msg) game:GetService("Chat"):Chat(game:GetService("Players").LocalPlayer.Character.Head, msg,"Red") end) |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|
H5L
|
  |
| Joined: 19 Jun 2013 |
| Total Posts: 352 |
|
|
| 22 Jun 2013 03:39 PM |
| Unless you got no character it would work. |
|
|
| Report Abuse |
|
|