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: Position on a Part

Previous Thread :: Next Thread 
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
15 Aug 2015 08:15 PM
Output is
Players.Player.Backpack.Tool.Script:23: bad argument #3 to 'Position' (Vector3 expected, got Object)

wtf?

Great Glob and Apple Sauce
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
15 Aug 2015 08:18 PM
Code from line 24 of script in tool please.
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
15 Aug 2015 08:20 PM
Umm well it says it got an object so you prob did

workspace.Part.Position = workspace.Part2

instead of doing

workspace.Part.Position = workspace.Part2.Position


You like Clash of Clans? Play this developing masterpiece by Domini Studios http://www.roblox.com/games/282763164/Clash-of-Bloxians-Beta scripted by yours truly
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
15 Aug 2015 08:23 PM
function shoot()
local ball = Instance.new("Part")
ball.Shape = "Ball"
ball.BottomSurface = "Smooth"
ball.TopSurface = "Smooth"
ball.Size = Vector3.new (1.21, 1.21, 1.21)
ball.Name = "Bullet"
ball.Parent = game.Workspace
ball.Position = tool.Handle
print('GO!')
end

tool.Activated:connect(shoot)



Great Glob and Apple Sauce
Report Abuse
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
15 Aug 2015 08:25 PM
tool.Handle.Position
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
15 Aug 2015 08:26 PM
.-.



Great Glob and Apple Sauce
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
15 Aug 2015 08:26 PM
tool.Handle.Position, genius. lol

or you could do

tool.handle.Position + (0, 4, 0)

wait will that even work?
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
15 Aug 2015 08:26 PM
well ty

i was more focus on making my tool shoot



Great Glob and Apple Sauce
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
15 Aug 2015 08:27 PM
well you did specify the code, only to insert a part where handle is.
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
15 Aug 2015 08:28 PM
tool.Handle.Position + Vector3.new (0, 4, 0)*


Great Glob and Apple Sauce
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