Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i Instance a particle to my kamui script? /;

Asked by 5 years ago

I tried To instance a particle to my script

Example: ~~~~~~~~~~~~~~~~~ local Player = game:GetService("Players").LocalPlayer local rp = game:GetService("ReplicatedStorage") local Kamui = rp:WaitForChild("Kamui")

Kamui.OnServerEvent:Connect(function(Player,Mouse) local Character = Player.Character

local distance = 10

local partDistance = (Mouse.Position - Character:WaitForChild("HumanoidRootPart").Position).magnitude
if partDistance <= distance then
    if Mouse.Parent:FindFirstChild("Humanoid") then
        local HumanoidRP = Mouse.Parent:WaitForChild("HumanoidRootPart")
        local Humanoid = Mouse.Parent:WaitForChild("Humanoid")

        if Humanoid then
            local KamuiDimension = workspace:WaitForChild("Kamui Dimension")
            local tp1 = KamuiDimension:WaitForChild("tp1")

            --//Spawn Eye particles here\\--
            -- Code here

            wait(2)
            HumanoidRP.CFrame = tp1.CFrame * CFrame.new(0,8,0)
        end
    else
        return
    end
end

where it says "Spawn Eye particles here" it means as in the particle for the kamui spinning thing i already have that but i dont know how to instance it and make a code for it. and my other script for incase ~~~~~~~~~~~~~~~~~ local Player = game:GetService("Players").LocalPlayer local rp = game:GetService("ReplicatedStorage") local Kamui = rp:WaitForChild("Kamui") local UserInput = game:GetService("UserInputService") local Mouse = Player:GetMouse() local Debounce = false local coolDown = 5 UserInput.InputBegan:Connect(function(Input,IsTyping) if IsTyping then return elseif Input.KeyCode == Enum.KeyCode.E and Debounce == false then Debounce = true Kamui:FireServer(Mouse.Target) end end) Kamui.OnClientEvent:Connect(function() wait(coolDown) Debounce = false end)
0
you forgot :Clone()? dark_nineret -25 — 5y
0
no Penomecco 9 — 5y
0
everything works good im just adding the kamui circle eye thing but i dont know how to instance that in /; Penomecco 9 — 5y
0
Is this the whole script? I tested it, and tells me Position is not a valid Member of PlayerMouse. Are you using Mouse.Target? TheOfficiaIZai 8 — 5y
0
you probably put them in the wrong spot Penomecco 9 — 5y

Answer this question