zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 11 Jan 2014 07:33 PM |
http://www.roblox.com/Building-ting-place?id=141773628
Rate from 1-10!
And, if you want... Give suggestions/ideas. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2014 07:46 PM |
9/10
CameraLock Script please?
ᴸᴼᴬᴰᴵᴺᴳ³²¹⋅ᵉˣᵉ ᴴᵃˢ ˢᵗᵒᵖᵖᵉᵈ ʷᵒʳᵏᶦᶰᵍ ᴸᴼᴬᴰᴵᴺᴳ ᵃ ᶰᵉʷ ⋅ᵉˣᵉ ᶠᶦᶫᵉ |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2014 07:53 PM |
9.3 Very serene and peaceful |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 11 Jan 2014 07:56 PM |
This is the camera lock script
repeat wait(1) until game.Players.LocalPlayer.Character.Head local mouse = game.Players.LocalPlayer:GetMouse() local energy = script.energy local running = script.running local plr = game.Players.LocalPlayer.Character.Head:GetChildren()
for i = 1,#plr do if plr[i]:IsA ("Sound") then print("zomg") if plr[i].SoundId == "rbxasset://sounds/bfsl-minifigfoots1.mp3" then plr[i].SoundId = "http://www.roblox.com/asset/?id=131436155" plr[i].Pitch = 0.3 plr[i].Name = "walk" end end end game.Players.LocalPlayer.CameraMode = "LockFirstPerson" game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10 walksound = game.Players.LocalPlayer.Character.Head.walk
function onKeyDown(key) key = key:lower() if key:byte() == 48 and running.Value == false then running.Value = true while running.Value == true do if energy.Value == 0 then wait(0.1) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10 walksound.Pitch = 0.3 else energy.Value = energy.Value - 1 print(energy.Value) wait(0.1) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20 walksound.Pitch = 0.45 end end end end
function onKeyUp(key) key = key:lower() if key:byte() == 48 and running.Value == true then running.Value = false while running.Value == false and energy.Value < 100 do wait(0.05) energy.Value = energy.Value + 1 print(energy.Value) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10 walksound.Pitch = 0.3 end end game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10 walksound.Pitch = 0.3 end
mouse.KeyDown:connect(onKeyDown) mouse.KeyUp:connect(onKeyUp)
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2014 07:59 PM |
Thank you!
ᴸᴼᴬᴰᴵᴺᴳ³²¹⋅ᵉˣᵉ ᴴᵃˢ ˢᵗᵒᵖᵖᵉᵈ ʷᵒʳᵏᶦᶰᵍ ᴸᴼᴬᴰᴵᴺᴳ ᵃ ᶰᵉʷ ⋅ᵉˣᵉ ᶠᶦᶫᵉ |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 11 Jan 2014 08:01 PM |
| By the way, it's inside StartGui with an int value and a bool value inside(energy(int) and running(bool)) |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2014 08:01 PM |
I am just curious is it a LocalScript or a Normal Script?
Where to put?
Workspace?? Etc?
ᴸᴼᴬᴰᴵᴺᴳ³²¹⋅ᵉˣᵉ ᴴᵃˢ ˢᵗᵒᵖᵖᵉᵈ ʷᵒʳᵏᶦᶰᵍ ᴸᴼᴬᴰᴵᴺᴳ ᵃ ᶰᵉʷ ⋅ᵉˣᵉ ᶠᶦᶫᵉ |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
| |
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 11 Jan 2014 08:14 PM |
| That script also includes the running.3. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2014 08:17 PM |
Kay.
ᴸᴼᴬᴰᴵᴺᴳ³²¹⋅ᵉˣᵉ ᴴᵃˢ ˢᵗᵒᵖᵖᵉᵈ ʷᵒʳᵏᶦᶰᵍ ᴸᴼᴬᴰᴵᴺᴳ ᵃ ᶰᵉʷ ⋅ᵉˣᵉ ᶠᶦᶫᵉ |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
| |
|
Aetha
|
  |
| Joined: 26 May 2007 |
| Total Posts: 69 |
|
| |
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
| |
|