NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 08 Apr 2014 01:15 PM |
Starting to complicated If you don't know lua, start off simple! Start by making a tycoon or something |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 08 Apr 2014 01:26 PM |
@Neon, okay, whatever, nobody on here would right a script for that Just look in free models mr big head |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 Apr 2014 01:31 PM |
@Neon:
That would take a very large//complex script, something that we just can't write for you in an instant.
Bob is right, start off smaller; you can't tackle this just yet. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 Apr 2014 01:32 PM |
Hang on, I might have something to help you. Try this:
Tool = script.Parent gyro = Instance.new("BodyGyro") script.Gyro.Value = gyro
onMouseMove=function(mouse) vCharacter = Tool.Parent if vCharacter ~= nil then local tp = vCharacter.Humanoid.TargetPoint tp = Vector3.new(tp.X,Tool.Parent.Torso.Position.Y,tp.Z) local dir = (tp - Tool.Parent.Torso.Position).unit local spawnPos = Tool.Parent.Torso.Position local pos = spawnPos + (dir * 1) script.Gyro.Value.cframe = CFrame.new(pos, pos + dir) end end
onEquipped=function(mouse) for i,k in pairs(Tool.Parent.Torso:GetChildren()) do if k:IsA("BodyGyro") then k.Parent=nil end end wait(0.1) script.Gyro.Value.Parent = Tool.Parent:findFirstChild("Torso") script.Gyro.Value.maxTorque = Vector3.new(math.huge,math.huge,math.huge) mouse.Move:connect(function() onMouseMove(mouse) end) end
onUnequipped=function() script.Gyro.Value.Parent = nil wait(0.01) for i,k in pairs(Tool.Parent.Torso:GetChildren()) do if k:IsA("BodyGyro") then k.Parent=nil end end end
Tool.Equipped:connect(onEquipped) Tool.Unequipped:connect(onUnequipped) |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 Apr 2014 01:33 PM |
Insert an ObjectValue named "Gyro" into this script. This is a Local Script inside of the tool. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 08 Apr 2014 01:43 PM |
"Insert an ObjectValue named "Gyro" into this script."
OP, read this VERY well and attentively. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 08 Apr 2014 01:54 PM |
| He said name it Gyro. Check what he said too insert. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|