Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Position is not a valid member of RemoteEvent?

Hello, I am making a Sword where if the sword animation plays, an huge explosion pops up. while im making this script i have an error that i don't know how to solve

Position is not a valid member of RemoteEvent

sorry for bad explanation this is the 2nd time i have used this site

the error is at line 28: NewExplosion.Position = Character["Right Arm"].Position

here is my script

local RemoteEvent = game.ReplicatedStorage.Explosion
local ReplicatedStorage = game.ReplicatedStorage


RemoteEvent.OnServerEvent:Connect(function(plr, tool)
	
	local Explosion = ReplicatedStorage.Explosion
	local TweenService = game:GetService("TweenService")
	local TweenInformation = TweenInfo.new(
		0.5,
		Enum.EasingStyle.Sine,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	
	local TweenProperty = {
		Position = Vector3.new(25,25,25);
		Transparency = 1;
		
	}

	
	local NewExplosion = Explosion:Clone()
	local Character = plr.Character
	local player = plr.Name
	NewExplosion.Position = Character["Right Arm"].Position
	NewExplosion.Parent = workspace
	local Tween = TweenService:Create(NewExplosion, TweenInformation, TweenProperty)
	
	Tween:Play()
	

i thouht i would ask help here

1 comment

0

Is ReplicatedStorage.Explosion an event or remote event?

1 answer

✓ Accepted answer

Assuming that ReplicatedStorage.Explosion is a remote event, it does NOT have a position as it is not a part, GUI or similar. (Line 25)

1 comment

0

oops lol i accidently cloned that

This discussion is preserved as it was. New answers, comments, and votes are closed.