|
| 14 Jul 2017 09:32 PM |
I have a whole script for Buso Haki, it seems like it should work. When I got to test It has 0 results.
All the commands are pretty basic for what its suppose to do. Don't know where I went wrong tbh. As for testing I have it under starterpack
Could anyone list some problems that may be occurring? Location of Script, The kind of Script, etc?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jul 2017 09:36 PM |
local Player = game.Players.LocalPlayer == tells the script what the player is repeat wait() until Player.Character == waits until is finds the players character local Character = Player.Character == tells the script where the players character is local Mouse = Player:GetMouse() == tells the script what the players mouse is
Mouse.Keydown:connect(function(Key) == if a key is pressed it will run the code under it if Key == "t" then == if the key is t #t will run the code under it Character["Left Arm"].Transparency = 1 local LeftArm = Instance.new("Part") -- creates a part LeftArm.Name = "BusoLeftArm" LeftArm.BrickColor = BrickColor.new("Black") LeftArm.Material = "SmoothPlastic" LeftArm.Reflectance = 0.2 LeftArm.CanCollide = true LeftArm.Anchored = false LeftArm.Size = Vector3.new(1, 2 ,1) LeftArm.Parent = Character local w = Instance.new("Weld") -- creates a weld which welds this buso to the actual arm in the players Character ####### # ############### Arm") w.Part1 = LeftArm w.Parent = LeftArm end end)
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 09:37 PM |
w.Part0 = Character("Left Arm")*
|
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jul 2017 09:43 PM |
I don't think Keydown is an event of mouse.
Use UserInputService: http://wiki.roblox.com/index.php?title=API:Class/UserInputService
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 09:44 PM |
So what do I replace it with?
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 09:59 PM |
KeyDown is a mouse event
its case sensitive, you have Keydown when it should be KeyDown
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 10:03 PM |
"you have Keydown when it should be KeyDown" What?
(Kinda new to this)
|
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 02:20 AM |
Keydown KeyDown
do you see the difference? it matters everything in programming is case-sensitive
"VARIABLE" is not the same as "variable"
|
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 02:42 AM |
First off don't use KeyDown... use UserInputService
|
|
|
| Report Abuse |
|
|
Mokuteki
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 906 |
|
|
| 16 Jul 2017 04:44 AM |
^^ Yes use input services lol.
local Player = game.Players.LocalPlayer local UIS = game:GetService("UserInputService") repeat wait() until Player.Character local Character = Player.Character local Humanoid = Character:WaitForChild("Humanoid")
local enabled = false local cooldown = 10
UIS.InputBegan:Connect(function(Input, GPE)
if GPE then return end if Input.KeyCode == Enum.KeyCode.J then --SCRIPT GOES HERE if not enabled then enabled = true Character.Humanoid.MaxHealth = 200 wait(cooldown) enabled = false end end end) |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 16 Jul 2017 05:49 AM |
Multiple things
use UserInputService
As for the black thing for the haki, don't try to recreate the arm. Just clone the left arm and set it to anchored = false and cancollide = false, then color it and weld it.
The damage thing is uhhhhhhhhh idk |
|
|
| Report Abuse |
|
|
Mokuteki
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 906 |
|
|
| 16 Jul 2017 06:08 AM |
@ rouge
ball.Touched:Connect(function(Part) if Part.Parent.Name ~= Player.Name then if not ball:FindFirstChild("Hit") then if Part.Parent:FindFirstChild("Humanoid") then local humanoid = Part.Parent.Humanoid local hit = Instance.new("BoolValue") hit.Name = "Hit" hit.Parent = ball humanoid:TakeDamage(15) end end end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jul 2017 06:48 AM |
LOL THIS IDIOT CAN'T EVEN SPELL GAME SERVICES PROPERLY XD
Keydown == KeyDown
R u a nob? |
|
|
| Report Abuse |
|
|