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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Jan 2013 01:17 PM |
Exactly. Now you can fix that up! :D wiki.roblox.com lualearners.org lua.org |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 14 Jan 2013 01:18 PM |
| Possibly, I am not a camera pro. Just test it out yourself, man |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 14 Jan 2013 01:20 PM |
| No you can't change the transparency of a decal, you must :Remove() it |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 14 Jan 2013 01:21 PM |
| You can change Transparency.... :l |
|
|
| Report Abuse |
|
|
|
| 14 Jan 2013 01:21 PM |
I think CameraMode is a enum
http://wiki.roblox.com/index.php/Enum |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 14 Jan 2013 01:25 PM |
| Will the script work? In play mode) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 14 Jan 2013 01:29 PM |
| This is the Fakehead namer right? |
|
|
| Report Abuse |
|
|
|
| 14 Jan 2013 01:39 PM |
Fake namer and locks first person.
Use the second script, the first one is pooey |
|
|
| Report Abuse |
|
|
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 |
|
|