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: need help on a script for script builder not working

Previous Thread :: Next Thread 
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 12:59 PM
pls reply help me pls
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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 is not online. 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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 01:06 PM
i wont stop playing script builder and why should i stop its so fun
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 01:09 PM
can some one just help btw time that was not even helpful
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 01:15 PM
JUST HELP ME FOR DOGE SAKE
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
12 Aug 2015 01:17 PM
Please just give us the portion of the script that HAS the problem.
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
12 Aug 2015 01:24 PM
Then in my first line add LocalPlayer after Players. Ex

game.Players.LocalPlayer:PlayerAdded...
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
12 Aug 2015 01:28 PM
Do you have the PlayerAdded event
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 01:31 PM
plus who needs player added i just need local player
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
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
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
12 Aug 2015 01:34 PM
its local player witch can chat
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
12 Aug 2015 01:36 PM
Then make it userId instead of your name
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