|
| 03 Sep 2016 02:58 PM |
Well The problem is this one a friend helped me to make me a tool that tool shoot strings I told him to make it shoot cubes instead of strings
This is the script I just did the basics he did well most work then me but all i need to know is simple how do i make it shoot Cubes Instead Of Strings
That's all I want to know.
local debounce = false Player = script.Parent.Parent.Parent function onButton1Down() local char = Player.Character local dance = Instance.new("Animation") dance.AnimationId = "TYPE YOUR ANIMATION ID IN HERE!!" local animloader = char.Humanoid:LoadAnimation(dance) animloader:Play() local pos local m = Player:GetMouse() local t = m.Hit if t then pos = t local tor = Player.Character:WaitForChild("Torso") local h = Player.Character:WaitForChild("Head") tor.CFrame = CFrame.new(tor.Position,Vector3.new(t.X,tor.Position.Y,t.Z)) end local x = Instance.new("Part") x.Touched:connect(function(hit) if hit.Name == "Torso" then for i = 1,3 do hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -15 end end end) x.BrickColor = BrickColor.new("Toothpaste") x.Transparency = 0.4 x.Material = "Neon" x.CanCollide = false x.Size = Vector3.new(YOUR SIZE LIKE (4,4,4) Player.Character.Humanoid.WalkSpeed = 0 x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -13) local Force = Instance.new("BodyVelocity", x) Force.maxForce = Vector3.new(math.huge, math.huge, math.huge) Force.Velocity = Player.Character.Torso.CFrame.lookVector*80 Force.Parent = x x.Parent = game.Workspace wait(5) Player.Character.Humanoid.WalkSpeed = 16 game.Debris:AddItem(x, 1) wait(6) end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
script.Parent.Selected:connect(onSelected)
|
|
|
| Report Abuse |
|
|
Exonrix
|
  |
| Joined: 25 Feb 2010 |
| Total Posts: 706 |
|
|
| 03 Sep 2016 03:02 PM |
x.Size = Vector3.new(YOUR SIZE LIKE (4,4,4)
change that line to
x.Size = Vector3.new(4, 4, 4)
|
|
|
| Report Abuse |
|
|
|
| 03 Sep 2016 03:04 PM |
| Thank you so much!! Seriously I want to reward you how about 500 robux but just let me buy more cause i got 13 only |
|
|
| Report Abuse |
|
|
Exonrix
|
  |
| Joined: 25 Feb 2010 |
| Total Posts: 706 |
|
|
| 03 Sep 2016 03:05 PM |
haha you're welcome, i don't need robux though
|
|
|
| Report Abuse |
|
|
Exonrix
|
  |
| Joined: 25 Feb 2010 |
| Total Posts: 706 |
|
|
| 03 Sep 2016 03:05 PM |
i don't need any reward at all* sorry didn't word that correctly
|
|
|
| Report Abuse |
|
|
|
| 03 Sep 2016 03:07 PM |
| Well I'm Spanish And i know english well most of it so that is the point i want to learn to script so I'm watching the basics |
|
|
| Report Abuse |
|
|
Exonrix
|
  |
| Joined: 25 Feb 2010 |
| Total Posts: 706 |
|
|
| 03 Sep 2016 03:08 PM |
yeah i was referring to myself, and your english is great. look up lua tutorials on the wiki or youtube to get started
|
|
|
| Report Abuse |
|
|
|
| 03 Sep 2016 03:46 PM |
| If i want to put it sound ? |
|
|
| Report Abuse |
|
|