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: SIMPLE HELP

Previous Thread :: Next Thread 
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 08:04 PM
i need to use instance.new() to create a part on the player's position.

How do i get the position of the player?

(1 person server)
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 08:28 PM
adsdasd
Report Abuse
ZhangWenlun is not online. ZhangWenlun
Joined: 16 Mar 2014
Total Posts: 14
22 Mar 2014 08:32 PM
I think you do char[Torso]CFrame or char[Torso].CFrame. But locate char first. Oh and instead of Torso if you want Right arm in the braces put the body part.
Report Abuse
ZhangWenlun is not online. ZhangWenlun
Joined: 16 Mar 2014
Total Posts: 14
22 Mar 2014 08:34 PM
I got it.
(in this example locate char as the character, also exchange bodypart to the part you want the CFrame of)

char["bodypart"].CFrame
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 08:48 PM
i dun know how to get char tho

im a noob
and i need the whole script plz
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 09:31 PM
das
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
22 Mar 2014 09:33 PM
Here you go.

g = Instance.new("Part", game.Workspace) g.Position=Vector3.new(game.Workspace.PlayerName.PlayerPart)

It should work.

:SYSTEM:User:TheBenSquare:Loading:Error
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 09:34 PM
but i dont know the player name
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
22 Mar 2014 09:36 PM
The player name is the username.

The player part is stuff like Torso, Head, Left Arm, Right Arm, Left Leg, Right Leg.

:SYSTEM:User:TheBenSquare:Loading:Error
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 09:38 PM
ya but

im not refrencing a specific character

i want to refer to anyone
Report Abuse
ZerefSan is not online. ZerefSan
Joined: 14 Jun 2011
Total Posts: 1068
22 Mar 2014 09:39 PM
new=Instance.new("Part", Workspace)

for i,v in pairs(game.Players:GetChildren) do
if v:IsA("Player") then
new.Position=v.Character.BODYPART
end

I think that will work.
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
22 Mar 2014 09:40 PM
Oh. You said simple, that's not simple to spawn a brick on a random person. Math.random won't be random from the people there, it'll just be plain random.

:SYSTEM:User:TheBenSquare:Loading:Error
Report Abuse
ZerefSan is not online. ZerefSan
Joined: 14 Jun 2011
Total Posts: 1068
22 Mar 2014 09:40 PM
NOPE

(game.Players:GetChildren())
Report Abuse
EpicTrollBlox is not online. EpicTrollBlox
Joined: 10 Jul 2012
Total Posts: 7096
22 Mar 2014 09:54 PM
weird, it didnt work...
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