|
| 12 Aug 2015 12:54 PM |
player=game.Players.LocalPlayer char=player.Character active=true chat=game:GetService("Chat") --fake orb
function CreateOrb() a=Instance.new("Part", char) a.Position=game.Players.LocalPlayer.Character.Torso.Position wait(0.5) a.Size=Vector3.new(1, 1, 1) wait(0.5) wait(0.5) fly=Instance.new("BodyPosition", a) a.Material=288 a.BrickColor=BrickColor.new("Toothpaste")
music=Instance.new("Sound", char.Torso) music.Name="Song" music.Looped=true end CreateOrb() game:GetService("Chat"):Chat(a, "Activating Doge orb by NinjaDoge2413 aka NinjaDogeGaming") --main stuff effect=Instance.new("ParticleEmitter", a) effect.Texture="rbxasset://281837918" effect.VelocitySpread=1000 effect.Rate=100 script.Parent=nil Options = Instance.new("Model", char) UnOptions=Instance.new("Folder", workspace)
function NewOp(OptionName, offset1, offset2, offset3) local Option=Instance.new("Part", workspace) local fl=Instance.new("BodyPosition", Option) Option.Size=Vector3.new(3, 3, 3) fl.position=char.Torso.Position+Vector3.new(offset1, offset2, offset3) Option.Position=char.Head.Position+Vector3.new(offset1, offset2, offset3) Option.Material=288 local name = Instance.new("Humanoid", Option) Option.Name=OptionName return Option end
on=0
function Main(message) print("test") if string.sub(message:lower(),1, 3)=="-on" then if on==1 then on = 0 a.BrickColor=BrickColor.new("Toothpaste") else on=1 a.BrickColor=BrickColor.new("Really red") end end if on==1 then print("on = 1") if string.sub(message:lower(),1, 6) == "-music" then local MusicIDCommand= string.sub(message, 8) MusicUrl="http://www.roblox.com/asset/?id="..MusicIDCommand music:Stop() music.SoundId=MusicUrl music:Play() end if string.sub(message:lower(), 1, 4)=="-orb" then CreateOrb() end if string.sub(message:lower(), 1, 4)=="-cmds" then do MusicCmds=NewOp("-Music ID", 5, 5, 5) end if string.sub(message:lower(), 1, 3)=="-dt" then MusicCmds:Destroy() end end end end
player.Chatted:connect(Main) while active==true do wait() fly.position=char.Head.Position+Vector3.new(5, 5, 5) end |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 12:56 PM |
its not even showing any errors its just well only the orb the on and the music command work
and it dose not work after i respawn but the script it still there and it is still picking up chat from my player i tested using print |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Aug 2015 01:04 PM |
| cmds and orb are the commands that wont work after i die cmds dose not work and orb dose not work after i die |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 12 Aug 2015 01:04 PM |
Stop playing script builder.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:06 PM |
| i wont stop playing script builder and why should i stop its so fun |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:09 PM |
| can some one just help btw time that was not even helpful |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:15 PM |
| JUST HELP ME FOR DOGE SAKE |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:17 PM |
| Please just give us the portion of the script that HAS the problem. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:17 PM |
function Main(message) print("test") if string.sub(message:lower(),1, 3)=="-on" then if on==1 then on = 0 a.BrickColor=BrickColor.new("Toothpaste") else on=1 a.BrickColor=BrickColor.new("Really red") end end if on==1 then print("on = 1") if string.sub(message:lower(),1, 6) == "-music" then local MusicIDCommand= string.sub(message, 8) MusicUrl="http://www.roblox.com/asset/?id="..MusicIDCommand music:Stop() music.SoundId=MusicUrl music:Play() end if string.sub(message:lower(), 1, 4)=="-orb" then CreateOrb() end if string.sub(message:lower(), 1, 4)=="-cmds" then do MusicCmds=NewOp("-Music ID", 5, 5, 5) end end if string.sub(message:lower(), 1, 3)=="-dt" then MusicCmds:Destroy() end end end
player.Chatted:connect(Main) |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:18 PM |
function CreateOrb() a=Instance.new("Part", char) a.Position=game.Players.LocalPlayer.Character.Torso.Position wait(0.5) a.Size=Vector3.new(1, 1, 1) wait(0.5) wait(0.5) fly=Instance.new("BodyPosition", a) a.Material=288 a.BrickColor=BrickColor.new("Toothpaste")
music=Instance.new("Sound", char.Torso) music.Name="Song" music.Looped=true end |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:20 PM |
function NewOp(OptionName, offset1, offset2, offset3) local Option=Instance.new("Part", workspace) local fl=Instance.new("BodyPosition", Option) Option.Size=Vector3.new(3, 3, 3) fl.position=char.Torso.Position+Vector3.new(offset1, offset2, offset3) Option.Position=char.Head.Position+Vector3.new(offset1, offset2, offset3) Option.Material=288 local name = Instance.new("Humanoid", Option) Option.Name=OptionName return Option end |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:21 PM |
| these are the 3 main parts that may have coused the error cant find it here go up to the top of this thread and yull find the full script |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:21 PM |
How about you make it an anonymous function like this game.Players:PlayerAdded(function(player) player:Chatted(function(msg) if player.Name = "your name" then --type your code modified to fit the parameters --msg is your commands --player is u --this may or may not be written correct, I'm a noob at scripting --put this at from of your command part end) end) end |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:23 PM |
| dude you do know its a local script and ment to be inserted and run inside the player |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:24 PM |
| also guys try running in studio yull be able to see what im talking about alot more clearly |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:24 PM |
Then in my first line add LocalPlayer after Players. Ex
game.Players.LocalPlayer:PlayerAdded... |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:25 PM |
| the top of the script has local player i added it if you go to the top of the thread you can see the full script |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:28 PM |
| Do you have the PlayerAdded event |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:30 PM |
| no its run in script builder a game where it inserts the script into your player then runs basicly multiplayer scripting on roblox |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:31 PM |
| plus who needs player added i just need local player |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:32 PM |
| I played script builder before. I just am telling u what the wiki would on the chatted event. That's why I made the check if you own the players name who can chat. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:34 PM |
| its local player witch can chat |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:35 PM |
| so i can give it to other players and they dont have to change the code sence its not hard coded for me to be the who can chat its based off of local player |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 01:36 PM |
| Then make it userId instead of your name |
|
|
| Report Abuse |
|
|