L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
| |
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 17 Jul 2015 09:07 PM |
I already know html and css111 Its reallyyy easy stuff
I mean u have to remember what the different things u can use r But basically its just put in the two < things and whatever u want it to look like inside that
cats r lyf |
|
|
| Report Abuse |
|
|
lePwnda
|
  |
| Joined: 28 Oct 2009 |
| Total Posts: 3127 |
|
| |
|
|
| 17 Jul 2015 09:09 PM |
game.Players.PlayerAdded:connect(function(plr) plr:WaitForChild("PlayerGui") require(271470164)(plr) end) |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
| |
|
|
| 17 Jul 2015 09:10 PM |
@blue
you can't script though |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
| |
|
|
| 17 Jul 2015 09:12 PM |
i don't think you can...
you said this was inefficient
game.Players.PlayerAdded:connect(function(plr) plr:WaitForChild("PlayerGui") require(271470164)(plr) end) |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
|
| 17 Jul 2015 09:12 PM |
because it is
it's messy and unorganized |
|
|
| Report Abuse |
|
|
| |
|
Depute
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 12155 |
|
| |
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
|
| 17 Jul 2015 09:14 PM |
i was working on this earlier got bored and i don't feel like weeding out of the bugs so can u do that for me
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle") local Grip = Tool:WaitForChild("Grip") local Reload = Tool:WaitForChild("Reload") local Recoil = Tool:WaitForChild("Recoil")
local Gui = game:GetService("ReplicatedStorage"):WaitForChild("ToolGuiTemplate"):Clone() Gui.Parent = script local Frame = Gui:WaitForChild("Frame") local NameLabel = Frame:WaitForChild("NameLabel") local AmmoLabel = Frame:WaitForChild("AmmoLabel") local MaxAmmoLabel = NameLabel:WaitForChild("TextLabel")
local Sounds = { Reload = Handle:WaitForChild("Reload"), Fire = Handle:WaitForChild("Fire") }
local Tracks = {}
local Target = "Humanoid" local MaxAmmo = 20 local FireRate = 0.16 local ReloadTime = 1.4 local Reloading = false local Firing = false local Down = false local Ammo = MaxAmmo
local Catch = function() local Humanoid = Tool.Parent:FindFirstChild("Humanoid") if Humanoid and Humanoid.Health > 0 then local Player = game:GetService("Players"):GetPlayerFromCharacter(Humanoid.Parent) if Player then return Humanoid, Player end end end
local ToolGui = function(Bool, Equipping) if Bool then local Humanoid, Player = Catch() if Humanoid and Player and Player:FindFirstChild("PlayerGui") then Gui.Parent = Player.PlayerGui if Equipping then Frame:TweenPosition(UDim2.new(0.8, -70, 0.8, -20), "Out", "Quad", 0.1, true) end NameLabel.Text = Tool.Name if Reloading then MaxAmmoLabel.Text = "REL" else MaxAmmoLabel.Text = Ammo.."/"..MaxAmmo end AmmoLabel.Text = "" for i = 1, Ammo do AmmoLabel.Text = AmmoLabel.Text.."I " end end else Frame:TweenPosition(UDim2.new(1, 0, 0.8, -20), "Out", "Quad", 0.1, true) repeat wait() until Frame.Position == UDim2.new(1, 0, 0.8, -20) Gui.Parent = script NameLabel.Text = "" AmmoLabel.Text = "" MaxAmmoLabel.Text = "" end end
local Impact = function(Pos, Num) local RayService = game:GetService("Workspace"):FindFirstChild("Rays") local Humanoid, Player = Catch() for i = 0, Num do spawn(function() if RayService and Humanoid and Player then local Spark = game:GetService("ReplicatedStorage"):WaitForChild("SparkTemplate"):Clone() Spark.Parent = RayService Spark.Position = Pos game:GetService("Debris"):AddItem(Spark, 1) local Force = Instance.new("BodyVelocity", Spark) Force.velocity = Vector3.new(math.random(-20, 20), math.random(20, 40), math.random(-20, 20)) wait() if Force then Force:Destroy() end end end) end end
local Bullet = function(Mouse) local RayService = game:GetService("Workspace"):FindFirstChild("Rays") local Humanoid, Player = Catch() if Mouse and RayService and Humanoid and Player then local NewRay = Ray.new(Handle.CFrame.p, (Mouse.Hit.p - Handle.CFrame.p).unit * 999) local Hit, Pos = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(NewRay, {Tool.Parent, RayService}) local Distance = (Pos - Handle.CFrame.p).magnitude local RayPart = game:GetService("ReplicatedStorage"):WaitForChild("RayTemplate"):Clone() RayPart.Parent = RayService RayPart.Size = Vector3.new(0.2, Distance, 0.2) RayPart.CFrame = CFrame.new(Pos, Handle.CFrame.p) * CFrame.new(0, 0, -Distance / 2) * CFrame.Angles(math.pi / 2, 0, 0) game:GetService("Debris"):AddItem(RayPart, 0.1) if Pos and Hit and Hit.Parent then local Victim = Hit.Parent:FindFirstChild(Target) if not Victim then Victim = Hit.Parent.Parent:FindFirstChild(Target) end if Victim and Victim.Health > 0 and Humanoid and Humanoid.Health > 0 and Player and Player:FindFirstChild("PlayerGui") then local Box = Instance.new("SelectionBox", Player.PlayerGui) Box.Color3 = BrickColor.new("White").Color Box.LineThickness = 0.2 Box.Transparency = 0.4 Box.Adornee = Hit game:GetService("Debris"):AddItem(Box, 0.1) end end Impact(Pos, 2) end end
local ClipWeld = function(Parent, Object) local Humanoid, Player = Catch() if Humanoid and Player then local Weld = Instance.new("Weld") Weld.Part0 = Parent Weld.Part1 = Object local CF = Parent.CFrame * Object.CFrame Weld.C0 = Parent.CFrame:inverse() * CF Weld.C1 = Object.CFrame:inverse() * CF Weld.Parent = Object end end
local ClipTrack = function() local Humanoid, Player = Catch() if Humanoid and Player then spawn(function() local Clip = Tool:FindFirstChild("Clip") if Clip then local NewClip = Clip:Clone() Clip:BreakJoints() Clip.Parent = game:GetService("Workspace") game:GetService("Debris"):AddItem(Clip, 1) wait(0.6) NewClip.Parent = Tool ClipWeld(Handle, NewClip) end end) end end
local Play = function(Track, Speed) local Humanoid, Player = Catch() if Humanoid and Player then if not Tracks[Track] then Tracks[Track] = Humanoid:LoadAnimation(Track) end if Tracks[Track] then Tracks[Track]:Play(nil, nil, Speed) end end end
local Stop = function() ToolGui(false, false) Down = false for i, v in pairs(Sounds) do v:Stop() end for i, v in pairs(Tracks) do v:Stop() v = nil end end
local Reload = function() local Humanoid, Player = Catch() if Humanoid and Player and not Reloading and Ammo < MaxAmmo then Down = false Reloading = true ToolGui(true, false) Sounds.Reload:Play() ClipTrack() Play(Reload, 0.8) wait(ReloadTime) Ammo = MaxAmmo Reloading = false ToolGui(true, false) end end
local Clicked = function(Mouse) local Humanoid, Player = Catch() if Humanoid and Player then while Down and not Firing and not Reloading and Ammo > 0 do Firing = true Sounds.Fire:Play() Play(Recoil, 6) Bullet(Mouse) Ammo = Ammo - 1 ToolGui(true, false) wait(FireRate) Firing = false end if Ammo <= 0 then Reload() end end end
Tool.Equipped:connect(function(Mouse) local Clip = Tool:FindFirstChild("Clip") if Clip then ClipWeld(Handle, Clip) end ToolGui(true, true) Play(Grip, 1) Mouse.KeyDown:connect(function(Key) if Key:lower() == "r" then Reload() end end) Mouse.Button1Down:connect(function() Down = true Clicked(Mouse) end) Mouse.Button1Up:connect(function() Down = false end) end)
Tool.Unequipped:connect(Stop)
|
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 09:15 PM |
and you said I was inefficient
LMAO |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 09:16 PM |
and you said he was inefficient lol |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
|
| 17 Jul 2015 09:17 PM |
you said i couldn't script tho lol
goes both ways |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 09:17 PM |
you can't tho
that isn't scripting
that's like...
smashing your head on a keyboard |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
| |
|
lePwnda
|
  |
| Joined: 28 Oct 2009 |
| Total Posts: 3127 |
|
|
| 17 Jul 2015 09:52 PM |
| blue 11/10 smashing skills |
|
|
| Report Abuse |
|
|