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 » Scripters
Home Search
 

Re: How to put a part into a player's camera?

Previous Thread :: Next Thread 
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 11:55 AM
Title
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
26 Jan 2017 12:05 PM
A client-sided part eh? Well put this in a local script:

local part = instance.new("Part", workspace.CurrentCamera) --I think it's this.

Or if FE is on, just create a part in local script.


Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064
Report Abuse
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 12:11 PM
That didn't work, I put the local script in the Workspace, correct?
Report Abuse
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 12:12 PM
A local script in the Workspace:

local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.Camera
Report Abuse
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 12:12 PM
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera

*
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Jan 2017 12:13 PM
You don't put anything in the Camera.

Use FE and a local script

Instance.new('Part',workspace)

boom. done.


Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
26 Jan 2017 12:13 PM
LocalScripts do not work in Workspace. Unless they are parented to something that uses the client.

Place the LocalScript in something like ReplicatedStorage or in StarterPlayerScripts.


Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064
Report Abuse
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 12:20 PM
wait (5)
if script.Parent.Parent:GetRankInGroup(2911975) >= 3 then
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera
part.CanCollide = false
else
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera

end



This is all in the LocalScript, it doesn't work.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Jan 2017 12:27 PM
omfg

workspace.FilteringEnabled = true

--local script

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local part = game.ReplicatedStorage:WaitForChild('Part')

if player:GetRankInGroup(2911975) >= 3 then
local part = part:Clone()
part.Parent = workspace
part.CanCollide = false
else
part:Clone().Parent = workspace
end


Report Abuse
ethanlaj is not online. ethanlaj
Joined: 17 Nov 2015
Total Posts: 922
26 Jan 2017 01:39 PM
^ FE will break all of my scripts...
Report Abuse
FumeiSencho is not online. FumeiSencho
Joined: 07 Apr 2013
Total Posts: 452
26 Jan 2017 03:03 PM
Put the script in PlayerGui, StarterPlayerScripts, or StarterCharacterScripts.
You never put localscripts in workspace or in workspace's descendants (except player characters or tools within characters). It's useless to do so.




Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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