Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is pretty basic. Press numkeys 1-5 to place the tower that is in that specific slot. You still need the money for it, though.
- When you press the number key, it places the tower, but it's not affected by boundaries such as max tower cap, whether it's a cliff/ground tower, or even if it's on your side. Go nuts!
- Code:
- loadstring(game:HttpGet("https://pastebin.com/raw/vj3xGUMT"))()
- OR
- Code:
- --Created by Drahazar#5976 aka MintyLatios
- --Press the num keys to place tower in the slot
- local me = game:service'Players'.localPlayer
- local map = workspace.Map
- local mouse = me:GetMouse()
- local lite = game:service'Lighting'
- function GetHigh()
- for _,v in next, map:children() do
- if(v.Name=='High')then
- for _,cliff in next, v:children() do
- if(cliff.Team.Value==me.TeamColor)then
- return cliff
- end
- end
- end
- end
- end
- function GetGrass()
- for _,v in next, map:children() do
- if(v.Name=='Grass')then
- if(v.Team.Value==me.TeamColor)then
- return v
- end
- end
- end
- end
- function GetShit(tower)
- local what = lite:FindFirstChild(tower)
- if(what)then
- if(what.Type.Value=='High')then
- return GetHigh()
- else
- return GetGrass()
- end
- end
- end
- mouse.KeyDown:connect(function(k)
- if(me.StuffToSave:FindFirstChild("Tower"..k))then
- local what=me.StuffToSave['Tower'..k].Value
- workspace.Placed:InvokeServer(mouse.Hit.p,1,what,GetShit(what))
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement