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
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 18 Nov 2014 01:39 PM |
| holy scripture of the oracle jahad o.e |
|
|
| Report Abuse |
|
|
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 |
|
|