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 2 magnitude

Previous Thread :: Next Thread 
towmater is not online. towmater
Joined: 05 Jan 2007
Total Posts: 1804
10 Jun 2014 09:09 PM
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

mouse.Button1Down:connect(function(newpart)
local part = Instance.new("Part", workspace)
part.Size = Vector3.new(1,1,1)
part.CFrame = mouse.Hit
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
--part.Velocity = mouse.Hit - plr.Character.Head.magnitude
part.BrickColor = BrickColor.Yellow()
local light = Instance.new("PointLight", part)
light.Color = part.Color
wait(3)
for i = 1,10,.1 do
wait(.3)
part.Transparency = i/2
if part.Transparency == 1 then
part:Destroy()
end
end
end)


--i'm wanting to change this to make it not make a brick at the position of the .Hit but make X amount of bricks to reach the .Hit's position.
Report Abuse
LordDestroyerChaos is not online. LordDestroyerChaos
Joined: 03 Jun 2012
Total Posts: 5742
10 Jun 2014 09:11 PM
hmm
Report Abuse
towmater is not online. towmater
Joined: 05 Jan 2007
Total Posts: 1804
10 Jun 2014 09:12 PM
so helpful
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