|
| 05 Jul 2013 02:05 AM |
Ok, so I edited this script so long ago I can't get the original....but apparently sometihng's wrong with it as it just won't work. I'm not given any output(s) in Test mode, and when I actually Play the place, again, nothing happens.
Help would be much appreciated.
game.Players.PlayerAdded:connect(function(player) while wait(0.4) do local check = player.Character:FindFirstChild("Head") if check ~= nil then local p = Instance.new("Part") local z = script.Mesh script.Delete:clone().Parent = p z:clone().Parent = p p.Delete.Disabled = false p.Parent = game.Workspace p.CanCollide = false p.formFactor = "Plate" p.Size = Vector3.new(0.4,1.6,0.4) p.BrickColor = BrickColor.new("Really black") p.Transparency = 0 p.Reflectance = 0 p.Position = Vector3.new((check.Position.x+math.random(-70,70)), (check.Position.y-10), (check.Position.z+math.random(-70,70))) local f = Instance.new("BodyVelocity") f.Parent = p f.velocity = Vector3.new(0,-75,0) f.maxForce = Vector3.new(4e+003, 4e+003, 4e+003) f.P = 1.25e+003 local s = Instance.new("BodyAngularVelocity") s.Parent = p s.P = 1.25e+003 s.angularvelocity = Vector3.new(0,3,0) s.maxTorque = Vector3.new(4e+003, 4e+003, 4e+003) end end end) |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 02:13 AM |
"script.Delete:clone().Parent = p" Is Delete (in this script) a function? I don't know...
p.formFactor = "Plate" according to what I found, that is invalid. It should be p.FormFactor = 3
Brick = 1 Symmetric = 2 Plate = 3 Custom = 4
All values are 0 by default, you don't need to specify that Transparency or Relflectance is 0.
ALSO, IF THE CONDITIONAL STATEMENT RETURNS FALSE, THE SCRIPT HAS NOTHING TO DO.
Randall Boggs = Doom Bucket > 7 > Blu > Emp+Est |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 02:18 AM |
Delete is a child of the main script.
I'll try the plate thingy.
And the statement should ALWAYS be true in this case. xD |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 02:19 AM |
FormFactor = "Plate" is correct. 3 would be the enum.
http://wiki.roblox.com/index.php/FormFactor_(Enum) |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 02:21 AM |
| Regardless of that, it still isn't working. |
|
|
| Report Abuse |
|
|
| |
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
| |
|
| |
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 05 Jul 2013 03:46 AM |
game.Players.PlayerAdded:connect(function(player) while wait(0.4) do local check = player.Character:FindFirstChild("Head") if check ~= nil then local p = Instance.new("Part") local z = script.Mesh script.Delete:clone().Parent = p z:clone().Parent = p p.Delete.Disabled = false p.Parent = game.Workspace p.CanCollide = false p.formFactor = "Plate" p.Size = Vector3.new(0.4,1.6,0.4) p.BrickColor = BrickColor.new("Really black") p.Transparency = 0 p.Reflectance = 0 p.Position = Vector3.new((check.Position.x+math.random(-70,70)), (check.Position.y-10), (check.Position.z+math.random(-70,70))) local f = Instance.new("BodyVelocity") f.Parent = p f.velocity = Vector3.new(0,-75,0) f.maxForce = Vector3.new(4+003, 4+003, 4+003) f.P = 1.25+003 local s = Instance.new("BodyAngularVelocity") s.Parent = p s.P = 1.25+003 s.angularvelocity = Vector3.new(0,3,0) s.maxTorque = Vector3.new(4+003, 4+003, 4+003) end end end) |
|
|
| Report Abuse |
|
|
| |
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 05 Jul 2013 04:05 AM |
| There is no output in Test mode as players load before scripts. Try changing the event to something you can trigger manually so you can test in Solo. |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 05 Jul 2013 04:07 AM |
| Actually try start server then when the server loads click start player on the server exe. |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 04:10 AM |
I'll try that. :o
@Thaeh Sorry about the other day? xD |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2013 04:25 AM |
M'kay, so I just set it as a LocalScript in the StarterGui, and set the parts to appear in the currentCamera, and viola! Everything works again. xD
Thanks for the help. - 3- |
|
|
| Report Abuse |
|
|