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: Little problem with while and C1 of Weld

Previous Thread :: Next Thread 
Akahashi is not online. Akahashi
Joined: 26 Aug 2012
Total Posts: 24
18 Nov 2014 01:35 PM
Hi guys, Egzekiel here, so i have a little problem and i really don't know why it doesn't work, i'm doing some test, i'm trying to make a hopper bin, when used, would create 2 red orb, weld to the torso with opposed X axis and make them spin, the problem is here:

while wait() do
wait(0.01)
w1.C1=CFrame.new(2,0,0)*CFrame.Angles(0,math.rad(1),0)
w2.C1=CFrame.new(-2,0,0)*CFrame.Angles(0,math.rad(1),0)
end

It move a bit around the player, after, it doesn't spin anymore
If you need the full script, tell me, but i don't really thing you do.
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
18 Nov 2014 01:37 PM
full scripture
Report Abuse
Akahashi is not online. Akahashi
Joined: 26 Aug 2012
Total Posts: 24
18 Nov 2014 01:37 PM
Sure.

--In LocalScript

p=script.Parent

p.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()
local char=game.Players.LocalPlayer.Character.Torso

local p1=Instance.new("Part",char.Parent)
p1.Shape=0
p1.BottomSurface="Smooth"
p1.TopSurface="Smooth"
p1.Size=Vector3.new(1,1,1)
p1.BrickColor=BrickColor.Red()
p1.Name="Red1"

local p2=Instance.new("Part",char.Parent)
p2.Shape=0
p2.BottomSurface="Smooth"
p2.TopSurface="Smooth"
p2.Size=Vector3.new(1,1,1)
p2.BrickColor=BrickColor.Red()
p2.Name="Red2"

local w1=Instance.new("Weld",char)
w1.Part0=char
w1.Part1=p1
w1.C1=CFrame.new(2,0,0)

local w2=Instance.new("Weld",char)
w2.Part0=char
w2.Part1=p2
w2.C1=CFrame.new(-2,0,0)

while wait() do
wait(0.01)
w1.C1=CFrame.new(2,0,0)*CFrame.Angles(0,math.rad(1),0)
w2.C1=CFrame.new(-2,0,0)*CFrame.Angles(0,math.rad(1),0)
end
end)
end)
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
18 Nov 2014 01:39 PM
can you explain briefly what you are trying to do it is hard to read on mobile
Report Abuse
AbdulsEbola is not online. AbdulsEbola
Joined: 24 Oct 2011
Total Posts: 9677
18 Nov 2014 01:39 PM
holy scripture of the oracle jahad o.e
Report Abuse
Akahashi is not online. Akahashi
Joined: 26 Aug 2012
Total Posts: 24
18 Nov 2014 01:40 PM
I'm trying to make the 2 balls spin around the player.
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