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: Some wierd glitch?

Previous Thread :: Next Thread 
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:44 PM
function died()
local skull=game.Lighting.Skull:clone()
skull.Parent=Workspace
skull.Position=game.Workspace.SkullDropper.Position
skull:BreakJoints()
end
script.Parent.Character.Humanoid.Died:connect(died)

It won't work or give me any output O_o
Report Abuse
abbymcabby is not online. abbymcabby
Joined: 03 Apr 2009
Total Posts: 2402
08 Feb 2010 04:45 PM
skull.Position=this?
try
skull.Position=Vector3.new(game.Workspace.SkullDropper.Position)
Report Abuse
B3tturTh3nU is not online. B3tturTh3nU
Joined: 18 Jun 2008
Total Posts: 6574
08 Feb 2010 04:46 PM
you can't create a vector using a vector =P

wha tis the script's parent.
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:46 PM
No...b.Position=c.Position has always worked for me
Report Abuse
djwhizzkid is not online. djwhizzkid
Joined: 16 Nov 2008
Total Posts: 638
08 Feb 2010 04:47 PM
maybe it's dropping inthe wrong position?

djwhizzkid
--(on iPod touch with roblox)--
Report Abuse
B3tturTh3nU is not online. B3tturTh3nU
Joined: 18 Jun 2008
Total Posts: 6574
08 Feb 2010 04:47 PM
I type too fast

*what is
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:48 PM
Mainscript

function ent(pla)
script.OnDied:clone().Parent=pla
pla.OnDied.Disabled=false
end
game.Players.ChildAdded:connect(ent)

That scripts child is:

function died()
local skull=game.Lighting.Skull:clone()
skull.Parent=Workspace
skull.Position=game.Workspace.SkullDropper.Position
skull:BreakJoints()
end
script.Parent.Character.Humanoid.Died:connect(died)
Report Abuse
falconx1096 is not online. falconx1096
Joined: 24 Jan 2008
Total Posts: 259
08 Feb 2010 04:48 PM
"skull.Position=Vector3.new(game.Workspace.SkullDropper.Position)"
wow...

Your problem probably is where you put the script. If you put it inside the character's workspace model, then change your connection line to "script.Parent.Humanoid.Died:connect(died)"
Report Abuse
B3tturTh3nU is not online. B3tturTh3nU
Joined: 18 Jun 2008
Total Posts: 6574
08 Feb 2010 04:49 PM
two problems,

1. changes to the script's properties do not take affect until the parent is changed

2. the Player appears before the character
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:49 PM
I put it in the player, not the character, because if I did that, I would have to clone it in-IDEA- every time.

brb
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:50 PM
UMG I know why, the player enters BEFORE the character PHAIL!!!
Report Abuse
falconx1096 is not online. falconx1096
Joined: 24 Jan 2008
Total Posts: 259
08 Feb 2010 04:50 PM
If you do put it inside the character's physical model, then you will need to make sure every character who you want to activate the affect has the script inside of them.
Report Abuse
abbymcabby is not online. abbymcabby
Joined: 03 Apr 2009
Total Posts: 2402
08 Feb 2010 04:53 PM
@tdog
wow. did BetterThenU not say that 2 post before u? wow...
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
08 Feb 2010 04:55 PM

I didn't see that, but I remember GoldenUrg telling me that, and this is the WORKING script I have now:

function ent(pla)
function charadded()
function died()
local skull=game.Lighting.Skull:clone()
skull.Parent=Workspace
skull.Position=game.Workspace.SkullDropper.Position
end
pla.Character.Humanoid.Died:connect(died)
end
pla.CharacterAdded:connect(charadded)
end
game.Players.ChildAdded:connect(ent)
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