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: Camera multiply

Previous Thread :: Next Thread 
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 09:26 AM
I am a starter scripter and I joined a friend game and I saw something really amazing, he made the camera like neon, it glows and its actually a camera, I think its camera multiplation.
Can someone tell me the script to how to make it neon like he did ;-;? and what is the process.


;-;
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 09:32 AM
The Camera is not a physical object, it cannot have materials.

Unless perhaps you mean he positioned a Part in front of the camera, in which case you have your answer.
Report Abuse
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 09:33 AM
Yes Jarod thats what I mean, how to do it?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 09:34 AM
Just use CFrames to put a Part in front of the Camera.
Part.CFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -2)
Report Abuse
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 09:35 AM
but how do I make it follow my camera?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 09:37 AM
Put it in a loop, or preferably use RenderStepped.

game:GetService("RunService").RenderStepped:connect(function()
-- Position the part here
end)
Report Abuse
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 09:41 AM
ok so thats basically the script:

game:GetService("RunService").RenderStepped:connect(function()
Part.CFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -2)
end)

and if I want to make it neon so itll be like this right?:

game:GetService("RunService").RenderStepped:connect(function()
Part.CFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -2)
end)

game.Workspace.Part.Material = "Neon"
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 09:42 AM
Yeah, more or less. Of course, you still need to define Part and Camera, and you will need to create it in the LocalScript so that nobody else can see it, and everyone has their own.
Report Abuse
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 09:49 AM
I inserted a Part to Workspace and yes its called: Part
I did this script:

game:GetService("RunService").RenderStepped:connect(function()
Part.CFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -2)
end)

game.Workspace.Part.Material = "Neon"

in a local script and it didnt work :c.
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
27 Nov 2015 09:56 AM
Some variables was not defined, but since the objects is placed in workspace you just need to add game.Workspace infront and Camera could be changed to CurrentCamera to make sure it gets the correct camera.

Here is an fixed version:

game:GetService("RunService").RenderStepped:connect(function()
game.Workspace.Part.CFrame = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(0, 0, -2)
end)

game.Workspace.Part.Material = "Neon"
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 09:57 AM
Because you still didn't define Part and Camera, which are used on line 2.
Report Abuse
WhiteRedDominoes is not online. WhiteRedDominoes
Joined: 28 Sep 2015
Total Posts: 116
27 Nov 2015 10:02 AM
Ok look.

game:GetService("RunService").RenderStepped:connect(function()
game.Workspace.Part.CFrame = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(0, 0, -2)
end)

game.Workspace.Part.Material = "Neon"

This is the script but it doesnt work I dont know why, yes I did it in LocalScript and inserted a part to workspace (The part in workspace isnt anchored or welded)
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
27 Nov 2015 12:24 PM
and no error in output?
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