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 » Scripting Helpers
Home Search
 

Re: problem with script(help!)

Previous Thread :: Next Thread 
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:09 PM
ok,before you jump to conclusions
1.i MADE this script
2.it IS long,but the only error seems to be:
Players.Player1.Backpack.LocalScript:68: 'eof' expected near 'end'
which is strange,as in the script,it shows no errors?
Help please!heres the script..it HAS the correct amount of ends,i think:
--its a localscript,in the starterpack

UGH,WTH ROBLOX
it wont let me post the script..
ill make it a FM..ugh
http://www.roblox.com/item.aspx?id=147314175
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:13 PM
it had a problem with me saying eof with the arrows I guess?:

plr = game.Players.LocalPlayer
wait(3)
player = plr.Character
mouse = plr:GetMouse()
print "GetMouse is succesfull"
a = false
rotating = false
rot = 0
mouse.Button1Down:connect(function()
print 'button1down'
bullet = game.Lighting.bullet
if not a then
print "attack!"
a = true
bv = Instance.new("BodyVelocity",player.Torso)
bv.velocity = Vector3.new(0,0,0)
repeat bv.velocity = bv.velocity+Vector3.new(0,5,0) wait(1) until bv.velocity == Vector3.new(0,15,0)
bv:destroy()
p = Instance.new("Part",Workspace)
p.Size = Vector3.new(10,1,10)
p.Anchored = true
p.CFrame = player.Torso.CFrame+Vector3.new(0,-3,0)
p.Transparency =1
rotating = true
fakela = player["Left Arm"]:clone()
player["Left Arm"].Transparency = 1
w = Instance.new("Weld",fakela)
fakela.Parent = player
w.Part0 = w.Parent
w.Part1 = player.Torso
w.C0 = CFrame.new(0.5,2,0)*CFrame.new(math.pi,0,0)
w.C0 = w.C0*CFrame.Angles(3,0,0) w.C0 = w.C0*CFrame.new(-2.2,1,0)
fakera = player["Right Arm"]:clone()
player["Right Arm"].Transparency = 1
w2 = Instance.new("Weld",fakera)
fakera.Parent = player
w2.Part0 = w2.Parent
w2.Part1 = player.Torso
w2.C0 = CFrame.new(0.5,2,0)*CFrame.new(math.pi,0,0)
w2.C0 = w2.C0*CFrame.Angles(3,0,0) w2.C0 = w2.C0*CFrame.new(-2.2-(player.Torso.Size.X+0.8),1,0)
repeat wait(0.1) rot = rot+1 player.Torso.CFrame = player.Torso.CFrame*CFrame.Angles(0,0.5,0)
b = bullet:clone()
print "cloned bullet"
b.Parent = Workspace
print "set parent"
b.CFrame = player.Torso.CFrame*CFrame.new(0,0,-5)
print "set position"
b.KillScript.Disabled = false
print "enabled killscript"
b.Transparency = 0
print "made visible"
b.Anchored = false
print "unachored"
b.CanCollide = true
print "cancollide"
until rot >39
rotating = false
p:destroy()
fakela:destroy()
player["Left Arm"].Transparency = 0
fakera:destroy()
player["Right Arm"].Transparency = 0
wait(1)
attacking = false
rot = 0
end
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:19 PM
bump,what could the problem be??
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:24 PM
really,is no one gonna help?
I help people on here alla time :(
gimme a break ;..(
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
22 Feb 2014 02:30 PM
Check the script player1's backpack and in like 68 remove the end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:32 PM
line 68 doesn't exist
line 67 is the last line
which is
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:34 PM
the two ends need to be there
the
first
end is for the if statement
the second end
"end)"
is for the .Button1Down function
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
22 Feb 2014 02:34 PM
eof near end usually means that there is an extra end somewhere. Double check the script
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:35 PM
hmm
ill use ctrl+f and try to find any extra ends...
but it didn't show any erros in the script :\
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:36 PM
no extra ends :\
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:39 PM
roblox must just hate me ;..(
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Feb 2014 02:42 PM
hooray!i got it working!
plr = game.Players.LocalPlayer
wait(3)
player = plr.Character
mouse = plr:GetMouse()
print "GetMouse is succesfull"
a = false
rotating = false
rot = 0
bullet = game.Lighting.bullet
mouse.Button1Down:connect(function()
if not a then
print "attack!"
a = true
bv = Instance.new("BodyVelocity",player.Torso)
bv.velocity = Vector3.new(0,0,0)
repeat bv.velocity = bv.velocity+Vector3.new(0,5,0) wait(1) until bv.velocity == Vector3.new(0,15,0)
bv:destroy()
p = Instance.new("Part",Workspace)
p.Size = Vector3.new(10,1,10)
p.Anchored = true
p.CFrame = player.Torso.CFrame+Vector3.new(0,-3,0)
p.Transparency =1
rotating = true
fakela = player["Left Arm"]:clone()
player["Left Arm"].Transparency = 1
w = Instance.new("Weld",fakela)
fakela.Parent = player
w.Part0 = w.Parent
w.Part1 = player.Torso
w.C0 = CFrame.new(0.5,2,0)*CFrame.new(math.pi,0,0)
w.C0 = w.C0*CFrame.Angles(3,0,0) w.C0 = w.C0*CFrame.new(-2.2,1,0)
fakera = player["Right Arm"]:clone()
player["Right Arm"].Transparency = 1
w2 = Instance.new("Weld",fakera)
fakera.Parent = player
w2.Part0 = w2.Parent
w2.Part1 = player.Torso
w2.C0 = CFrame.new(0.5,2,0)*CFrame.new(math.pi,0,0)
w2.C0 = w2.C0*CFrame.Angles(3,0,0) w2.C0 = w2.C0*CFrame.new(-2.2-(player.Torso.Size.X+0.8),1,0)
repeat wait(0.1) rot = rot+1 player.Torso.CFrame = player.Torso.CFrame*CFrame.Angles(0,0.5,0)
b = bullet:clone()
print "cloned bullet"
b.Parent = Workspace
print "set parent"
b.CFrame = player.Torso.CFrame*CFrame.new(0,0,-5)
print "set position"
b.KillScript.Disabled = false
print "enabled killscript"
b.Transparency = 0
print "made visible"
b.Anchored = false
print "unachored"
b.CanCollide = true
print "cancollide"
until rot >39
rotating = false
p:destroy()
fakela:destroy()
player["Left Arm"].Transparency = 0
fakera:destroy()
player["Right Arm"].Transparency = 0
wait(1)
a = false
rot = 0
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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