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: Resizing bricks? im dumb

Previous Thread :: Next Thread 
AkatHikari is not online. AkatHikari
Joined: 04 Mar 2012
Total Posts: 545
09 Apr 2015 11:19 AM
I have a script that spawns a brick (a sphere) at the position of someone's torso

Cancollide = false

it spawns where it is supposed to..
but then I have a script inside the brick that does

repeat wait(.1)
script.Parent.Size = script.Parent.Size + Vector3.new(1,1,1)
until script.Parent.Size.X >= 10

obviously this makes the brick teleport above the player because it is changing size...

i have thought and thouguht about it, but idk how to prevent that w/o using another loop

Mewo.
Report Abuse
AkatHikari is not online. AkatHikari
Joined: 04 Mar 2012
Total Posts: 545
09 Apr 2015 11:20 AM
So I guess I just need suggestions on how to get it to stay in place


Mewo.
Report Abuse
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
09 Apr 2015 11:21 AM
Try a weld


-Widths
Report Abuse
AkatHikari is not online. AkatHikari
Joined: 04 Mar 2012
Total Posts: 545
09 Apr 2015 11:28 AM
good idea ty


Mewo.
Report Abuse
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
09 Apr 2015 11:34 AM
local sphere = [your sphere]
local weld = Instance.new("ManualWeld", sphere)
weld.Part0 = sphere
weld.Part1 = player.Character.Torso
weld.C0 = CFrame.new()
weld.C1 = player.Character.Torso.CFrame:inverse() * sphere.CFrame
weld.Parent = sphere



-Widths
Report Abuse
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
09 Apr 2015 11:35 AM
oops try this instead

local sphere = [your sphere]
local weld = Instance.new("ManualWeld")
weld.Part0 = sphere
weld.Part1 = player.Character.Torso
weld.C0 = CFrame.new()
weld.C1 = player.Character.Torso.CFrame:inverse() * sphere.CFrame
weld.Parent = sphere


-Widths
Report Abuse
AkatHikari is not online. AkatHikari
Joined: 04 Mar 2012
Total Posts: 545
09 Apr 2015 11:43 AM
Hmm..That should work but it isn't for me...

Unless I did something wrong...But I used exactly what you wrote


Mewo.
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