cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 06 May 2013 10:06 PM |
I made a local script for making kill streaks. It doesn't work too well. Will pay from 25 - 50 robux depending on how much better you made it. (BC Required) If I approve please make a shirt priced on how much I say. Thanks, cxcharlie. (This is a local script) ------------- ------------------ local plr = game.Players.LocalPlayer pl = script.Parent.Parent plm = pl:GetMouse() local mouse = plr:GetMouse()
function buttonDown(key) if key == "g" then --CHANGE G TO BUTTON YOU PRESS TO CALL STREAK return; else bc = plr:findFirstChild("USED1") local en = script:findFirstChild("Enabled") local Streak = plr:findFirstChild("RobloxAdvancedKillstreak")--CHANGE ROBLOXAD.. TO YOUR LEADERSTARS, EX:KILLS local character = game.Players.LocalPlayer.Character if plr ~= nil and Streak.Value>2 and character ~= nil and key == "g" and bc == nil then--CHANGE 2 TO THE REQUIRED AMOUNT +1 EX: REQUIRED:1 WHAT I PUT:2 if en.Value ~= false then en.Value = false l = script.ShopGUI:Clone() a = Instance.new("StringValue") a.Name = "USED1" a.Parent = plr l.Parent = plr:findFirstChild("PlayerGui") l.Shop:TweenPosition(UDim2.new(0.5,0,0.4,0),"In","Quad",0.6,true) wait(.5) l.Shop.Text = "CALLING IN KILLSTREAK...." --CHANGE IF YOU WANT wait(.5) l.Shop.Text = "CALLING IN KILLSTREAK....." wait(.5) l.Shop.Text = "[DONE]" --z = game.Lighting:findFirstChild("SHOOOP"):Clone() --z.Parent = game.Workspace --z.Position = character.Torso + Vector3.new(0,0,2) ab = game.Lighting:findFirstChild("SHOOOP"):Clone()--CHANGE SHOOOP TO TOOL YOU PUT IN LIGHTING ab.Parent = pl:findFirstChild("Backpack")--IF YOU WANT TO INSERT A MODEL OR PART NEXT TO THE PLAYER THEN REMOVE THE DOUBLE LINES IN LINES 29-31 (NOT SURE IF IT WORKS BUT YOU CAN TRY IF YOU WANT) wait(4) en.Value = true elseif en.Value == false or key ~= "g" then print("HI") end elseif plr == nil or Streak.Value<3 or character == nil and key == "g" then--CHANGE G IF YOU CHANGED THE BUTTON U HAVE TO PRESS ALSO CHANGE 3 TO THE REQUIRED TO EARN AWARD if en.Value ~= false then en.Value = false need = 3 - Streak.Value NOP = script:findFirstChild("ShopGUI"):Clone() NOP.Parent = plr:findFirstChild("PlayerGui") not1 = NOP:findFirstChild("Shop") not1.Text = ("Sorry, You need %s more kill"):format(need) not1.FontSize = "Size36" not1:TweenPosition(UDim2.new(0.5,0,0.4,0),"In","Quad",1.5,true) wait(5) not1.Text = "Press (e) to close" wait(3) en.Value = true elseif en.Value == false then print("HI") end elseif bc ~= nil and key == "g" then if en.Value ~= false then en.Value = false la = script.ShopGUI:Clone() aall = la:findFirstChild("Shop") aall.Text = "You Already Used Your KillStreak Award..." la.Parent = plr:findFirstChild("PlayerGui") aall:TweenPosition(UDim2.new(0.5,0,0.4,0),"In","Quad",0.34,true) --DONT EDIT IF YOU DONT KNOW WUT UR DOING... wait(4) aall.Text = "Press (e) to close" aall.FontSize = "Size36" wait(2) en.Value = true elseif en.Value == false then print("HI") end end end end
function UnpressedKey(key) local en = script:findFirstChild("Enabled") l = plr.PlayerGui:findFirstChild("ShopGUI") if key == "e" then if en ~= nil then if en.Value == true then if l ~= nil then wait() en.Value = false plr:findFirstChild("PlayerGui").ShopGUI.Shop:TweenPosition(UDim2.new(0.5,-900,0.4,0),"Out","Quad",0.4,true) wait(2) l:Destroy() wait(10) en.Value = true elseif key ~= "e" then print("NOT E") elseif en == nil then print("Where is Value? .__.") elseif en.Value == false then print("Not ready..") elseif l == nil then if key == "e" then print("Where is GUI? .__.") end end end end end end
plm.KeyDown:connect(buttonDown) plm.KeyUp:connect(UnpressedKey)
--CXCHARLIE 5/5/13
|
|
|
| Report Abuse |
|
|
| |
|
|
| 06 May 2013 10:43 PM |
| Judging from skimming it, it seems very inefficient. Is that the problem? |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
| |
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
| |
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 06 May 2013 11:19 PM |
| also, sometimes it glitches |
|
|
| Report Abuse |
|
|
|
| 06 May 2013 11:21 PM |
| If you want us to fix it, you have to tell us what is happening. |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 06 May 2013 11:50 PM |
| Give me the money then I'll script for you. |
|
|
| Report Abuse |
|
|
| |
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
| |
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 07 May 2013 09:23 AM |
| will 30 be fine? make a shirt and pm it to me |
|
|
| Report Abuse |
|
|