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 » Scripting Helpers
Home Search
 

Re: Help? :D

Previous Thread :: Next Thread 
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
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
Architect2498 is not online. Architect2498
Joined: 21 Jun 2013
Total Posts: 656
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
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
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
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
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
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
05 Jul 2013 02:21 AM
Regardless of that, it still isn't working.
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
05 Jul 2013 03:16 AM
Bump
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
05 Jul 2013 03:18 AM
Give output.
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
05 Jul 2013 03:41 AM
There is none.
Report Abuse
gamert7 is not online. 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
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
05 Jul 2013 04:01 AM
What'd you change? :o
Report Abuse
Thaeh is not online. 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 is not online. 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
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
05 Jul 2013 04:10 AM
I'll try that. :o


@Thaeh
Sorry about the other day? xD
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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