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

i want to use the same instance.new idk how thou?

Asked by 5 years ago
Edited 5 years ago
local down = true       
    -- i don't want to put it here

game.ReplicatedStorage.events.Fire.OnServerEvent:Connect(function(player,size)
    local mp = player:GetMouse()
local we = true
        local x = Instance.new("Part",player.Character.Head)
        x.Shape = "Ball"
        x.BrickColor = BrickColor.new("Deep orange")
        x.Material = "Neon" 
        x.Transparency = .5
        x.BottomSurface = "Smooth"
        x.TopSurface = "Smooth"
        x.CanCollide = false
        x.Anchored = false      
        x.Position = player.Character.Head.Position
        x.Anchored = true
    while we == true do
        wait(.45)
        x.Size = x.Size + Vector3.new(.1,.1,.1)
    end


end)

game.ReplicatedStorage.events.metor.OnServerEvent:Connect(function(player)
-- here 

    end)
0
Please use proper grammar in your question. ChasingNachos 133 — 5y
0
bruh i was in a rush making a game for someone soo plz do chill Kay? helleric -3 — 5y
0
The parent argument to Instance.new is deprecated. You should also always use enumerations over strings. You also cannot get the mouse from the server. User#19524 175 — 5y
0
ok ty helleric -3 — 5y
0
You could do, local x = player.Character.Head.Part and use the x variable from on there TheOnlySmarts 233 — 5y

Answer this question