|
| 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 |
|
|
|
| 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 |
|
|
|
| 22 Feb 2014 02:19 PM |
| bump,what could the problem be?? |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:24 PM |
really,is no one gonna help? I help people on here alla time :( gimme a break ;..( |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:30 PM |
| Check the script player1's backpack and in like 68 remove the end |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:32 PM |
line 68 doesn't exist line 67 is the last line which is end) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 22 Feb 2014 02:39 PM |
| roblox must just hate me ;..( |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|