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: How would I...

Previous Thread :: Next Thread 
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
19 Aug 2013 04:42 PM
Player = script.Parent.Parent
mouse = Player:GetMouse()
key = script.Key.Value

function pressed(hit)
hit = hit:lower()
if hit == key then
Player.Character.Torso.Anchored = true
for i = 1, 30, 5 do
part = Instance.new("Part", workspace)
part.Anchored = true
part.Size = Vector3.new(5,5,5)
Part.Position = Player.Character.Torso.Position + Positition.new(0,0,i)
end
Player.Character.Torso.Anchored = false
end
end

mouse.KeyDown:connect(pressed)



so this works fine but how do I get it so the spawned bricks are infront of the character and at the exact same angle

and also can someone change .position for me to .CFrame because when I wrote .CFrame instead of position it errored in the output saying "excpected Vector3" so I replaced the cframes with .positions
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
19 Aug 2013 04:47 PM
did someone f5 bomb this or did I seriously get 101 views and no replys?
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
19 Aug 2013 04:56 PM
Bump
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