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: LockedFirstPerson and Fakeheadnamer

Previous Thread :: Next Thread 
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 12:57 PM
I need a script that will lock people in FirstPerson and cant go zoom out... And i need a script who names players head FakeHead instead. Help plz :\
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 12:59 PM
http://wiki.roblox.com/index.php/RBX.lua.Camera_(Object)
http://wiki.roblox.com/index.php/Camera_manipulation
wiki.roblox.com
lualearners.org
lua.org
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:01 PM
The head one is quite simple tho...

function NewP(p)
if game.Players:findFirstChild(p.Name) then
repeat wait() until p:findFirstChild("Head")
local h = p.Head
local v = h:Clone()
h.Transparency = 1
local w = Instance.new("Weld",v)
v.Name = "FakeHead"
v.Parent = p
w.Part1 = v
w.Part0 = h
end
end
game.Workspace.ChildAdded:connect(NewP)
--should work
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:15 PM
When creates FalseHead it creates another face what makes the person look... Weird.
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:17 PM
Exactly. Now you can fix that up! :D
wiki.roblox.com
lualearners.org
lua.org
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:17 PM
Should this work for ForcedZoomIn? ( got it from another post )

game.Players.PlayerAdded:connect(function(plr)
plr.CameraMode = "LockedFirstPerson"
end)

Can they zoom out now?
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:18 PM
Possibly, I am not a camera pro. Just test it out yourself, man
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:19 PM
function NewP(p)
if game.Players:findFirstChild(p.Name) then
repeat wait() until p:findFirstChild("Head")
local h = p.Head
local v = h:Clone()
h.Transparency = 1
local w = Instance.new("Weld",v)
v.Name = "FakeHead"
v.Parent = p
w.Part1 = v
w.Part0 = h
v.Face.Transparency = 1
end
end
end
game.Workspace.ChildAdded:connect(NewP)
--Should this work?
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:20 PM
No you can't change the transparency of a decal, you must :Remove() it
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:20 PM
Camera dosen't work...
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:21 PM
You can change Transparency.... :l
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:21 PM
I think CameraMode is a enum

http://wiki.roblox.com/index.php/Enum
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:22 PM
function NewP(p)
if game.Players:findFirstChild(p.Name) then
repeat wait() until p:findFirstChild("Head")
local h = p.Head
local v = h:Clone()
h.Transparency = 1
local w = Instance.new("Weld",v)
v.Name = "FakeHead"
v.Parent = p
w.Part1 = v
w.Part0 = h
v.Face:Remove()
end
end
end
game.Workspace.ChildAdded:connect(NewP)
--But if you say so
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
14 Jan 2013 01:23 PM
Ah, apparently you can. I didn't know. But that's just more memory being used on player clients.. might as well remove it
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:25 PM
Will the script work? In play mode)
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
14 Jan 2013 01:26 PM
game.Players.PlayerAdded:connect(function(p)
Delay(.5,function()p:LoadCharacter()end)
p.CharacterAdded:connect(function(c)
local h=c:FindFirstChild("Head"):Clone()
c:FindFirstChild("Head").Transparency=1
local m=Instance.new("Model",c)
m.Name="Fake name"
h.Parent=m
local t=Instance.new("Humanoid",m)
t.Health=0
t.MaxHealth=0
p.CameraMode=0
wait(.05)
p.CameraMode=1
end)
end)
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
14 Jan 2013 01:27 PM
local c=game:GetService("Players").LocalPlayer.Character
local h=c:FindFirstChild("Head"):Clone()
c:FindFirstChild("Head").Transparency=1
local m=Instance.new("Model",c)
m.Name="Fake name"
h.Parent=m
local t=Instance.new("Humanoid",m)
t.Health=0
t.MaxHealth=0
game:GetService("Players").LocalPlayer.CameraMode=0
wait(.05)
game:GetService("Players").LocalPlayer.CameraMode=1



Or you could put that in a LocalScript in StarterPack/Gui. I'd suggest this one.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
14 Jan 2013 01:29 PM
This is the Fakehead namer right?
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
14 Jan 2013 01:39 PM
Fake namer and locks first person.

Use the second script, the first one is pooey
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
15 Jan 2013 03:43 PM
In a localscript in Workspace? Btw - nice join date! You joined faster than me...
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